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
boost::stl_interfaces::swap
// In header: <boost/stl_interfaces/sequence_container_interface.hpp> template<typename ContainerInterface> decltype(v1_dtl::derived_container(lhs), lhs.swap(rhs)) swap(ContainerInterface & lhs, ContainerInterface & rhs);
Implementation of free function swap() for all containers derived from sequence_container_interface.