Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

函数模板 swap - Boost C++ 函数库
PrevUpHomeNext

函数模板 swap

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);

描述

为从 sequence_container_interface 派生的所有容器实现自由函数 swap()


PrevUpHomeNext