Boost C++ Libraries

...one 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 for the latest Boost documentation.
PrevUpHomeNext

Function template move

boost::move

Synopsis

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


template<typename T> rvalue_reference move(input_reference);

Description

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 &.


PrevUpHomeNext