¡@

Home 

c++ Programming Glossary: do_swap

Does C++11 change the behavior of explicitly calling std::swap to ensure ADL-located swap's are found, like boost::swap?

http://stackoverflow.com/questions/9170247/does-c11-change-the-behavior-of-explicitly-calling-stdswap-to-ensure-adl-loc

lhs foo rhs std swap lhs.i rhs.i template typename T void do_swap T lhs T rhs implementation to be determined int main ns foo.. T rhs implementation to be determined int main ns foo a b do_swap a b In C 03 this implementation of do_swap would be considered.. main ns foo a b do_swap a b In C 03 this implementation of do_swap would be considered broken template typename T void do_swap..