Hello Boost Users, I'm trying to learn multi threading in C++. http://www.boost.org/doc/libs/1_39_0/doc/html/thread/thread_management.html says "Objects of type boost::thread are movable, however, so they can be stored in move-aware containers, and returned from functions." Please help me understand what are movable objects. reagrds Abhishek
On Mon, Jul 5, 2010 at 3:07 PM, Abbhishek Misra wrote: Hello Boost Users, I'm trying to learn multi threading in C++. http://www.boost.org/doc/libs/1_39_0/doc/html/thread/thread_management.html says "Objects of type boost::thread are movable, however, so they can be
stored in move-aware containers, and returned from functions." Please help me understand what are movable objects. Moveable objects are objects supporting move semantics. See
http://en.wikipedia.org/wiki/C%2B%2B0x#Rvalue_reference_and_move_semantics
for a rather dry account of move semantics, or probably better see
http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/
where Dave A tells us all about it.
HTH
- Rob.
Thanks Rob this helps
On Mon, Jul 5, 2010 at 8:50 PM, Robert Jones
On Mon, Jul 5, 2010 at 3:07 PM, Abbhishek Misra
wrote: Hello Boost Users,
I'm trying to learn multi threading in C++.
http://www.boost.org/doc/libs/1_39_0/doc/html/thread/thread_management.html
says
"Objects of type boost::thread are movable, however, so they can be stored in move-aware containers, and returned from functions."
Please help me understand what are movable objects.
Moveable objects are objects supporting move semantics. See
http://en.wikipedia.org/wiki/C%2B%2B0x#Rvalue_reference_and_move_semantics
for a rather dry account of move semantics, or probably better see
http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/
where Dave A tells us all about it.
HTH
- Rob.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Abbhishek Misra
-
Robert Jones