swap
描述 (Description)
它交换存储的* this和other的可调用对象。
声明 (Declaration)
以下是std :: function :: swap的声明。
void swap( function& other );
C++11
void swap( function& other );
参数 (Parameters)
other - 它是一个函数包装器,用于交换存储的可调用对象。
返回值 (Return Value)
没有
异常 (Exceptions)
No-noexcept - 这个成员函数永远不会抛出异常。