Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

http://ideone.com/djnyd Anyone know the cases when this swap macro will fail?

OpenStudy (anonymous):

also, how is a generic swap accomplished in C++, Java, Python, obj-c, haskell, lisp, etc?

OpenStudy (anonymous):

how does std::swap() work in C++

OpenStudy (anonymous):

http://ideone.com/M04k7

OpenStudy (anonymous):

btw what happened in this case: http://ideone.com/xjQLK

OpenStudy (anonymous):

Check out http://www.cplusplus.com for std and stl reference, in this case http://www.cplusplus.com/reference/algorithm/swap/

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!