boost::swap
// In header: <boost/any.hpp> BOOST_ANY_IMPL_CONSTEXPR void swap(any & lhs, any & rhs);
Exchange of the contents of lhs and rhs.
lhs
rhs
Throws: