Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template swap

boost::movelib::swap

Synopsis

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


template<typename T, typename D> 
  void swap(unique_ptr< T, D > & x, unique_ptr< T, D > & y);

Description

Effects: Calls x.swap(y).

Remarks: This function shall not participate in overload resolution unless is_swappable<D>::value is true. If the compiler does not support deleted functions or the type traits can not detect them, the program is ill-formed instead.


PrevUpHomeNext