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 an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Function template swap

boost::interprocess::swap

Synopsis

// In header: <boost/interprocess/smart_ptr/intrusive_ptr.hpp>


template<typename T, typename VP> 
  void swap(intrusive_ptr< T, VP > & lhs, intrusive_ptr< T, VP > & rhs);

Description

Exchanges the contents of the two intrusive_ptrs. Does not throw


PrevUpHomeNext