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

PrevUpHomeNext

Function template swap

boost::anys::swap

Synopsis

// In header: <boost/any/basic_any.hpp>


template<std::size_t OptimizeForSize, std::size_t OptimizeForAlignment> 
  void swap(basic_any< OptimizeForSize, OptimizeForAlignment > & lhs, 
            basic_any< OptimizeForSize, OptimizeForAlignment > & rhs);

Description

Exchange of the contents of lhs and rhs.

Throws:

Nothing.

PrevUpHomeNext