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

Macro BOOST_MOVABLE_BUT_NOT_COPYABLE

BOOST_MOVABLE_BUT_NOT_COPYABLE

Synopsis

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

BOOST_MOVABLE_BUT_NOT_COPYABLE(TYPE)

Description

This macro marks a type as movable but not copyable, disabling copy construction and assignment. The user will need to write a move constructor/assignment as explained in the documentation to fully write a movable but not copyable class.


PrevUpHomeNext