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 a snapshot of the master branch, built from commit 6ff0123d1a.
PrevUpHomeNext

Function template swap

boost::interprocess::swap

Synopsis

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


template<typename T, typename D> 
  void swap(scoped_ptr< T, D > & a, scoped_ptr< T, D > & b);

Description

Exchanges the internal pointer and deleter with other scoped_ptr Never throws.


PrevUpHomeNext