¡@

Home 

c++ Programming Glossary: return_vector

C++11 rvalues and move semantics confusion

http://stackoverflow.com/questions/4986673/c11-rvalues-and-move-semantics-confusion

is going to do no vector copy First example std vector int return_vector void std vector int tmp 1 2 3 4 5 return tmp std vector int.. int tmp 1 2 3 4 5 return tmp std vector int rval_ref return_vector Second example std vector int return_vector void std vector.. int rval_ref return_vector Second example std vector int return_vector void std vector int tmp 1 2 3 4 5 return std move tmp std vector..