Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Function template move



// In header: <boost/move/utility_core.hpp>

template<typename T> rvalue_reference move(input_reference);


This function provides a way to convert a reference into a rvalue reference in compilers with rvalue references. For other compilers if T is Boost.Move enabled type then it converts T& into ::boost::rv<T> & so that move emulation is activated, else it returns T &.