...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::interprocess::swap
// 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);