¡@

Home 

c++ Programming Glossary: other.name

return value (not a reference) from the function, bound to a const reference in the calling function; how is its lifetime extended to the scope of the calling function?

http://stackoverflow.com/questions/2615162/return-value-not-a-reference-from-the-function-bound-to-a-const-reference-in

std cout foo ctor name created n foo foo const other name other.name copy std cout foo copy ctor name created n ~foo std cout name..

C++ Unified Assignment Operator move-semantics

http://stackoverflow.com/questions/7458110/c-unified-assignment-operator-move-semantics

swap other return this void swap my_type other name.swap other.name private std string name void operator const my_type delete void.. name_ name name_ void swap my_type other name.swap other.name private std string name This will get you implicit copy and.. operator mytype default void swap my_type other name.swap other.name private std string name You may also choose to do the above..