在线文档教程
C++
应用 | Utilities

std::function::swap

STD::功能::交换

void swap( function& other (since C++11)

交换存储的可调用对象。*thisother...

参数

other-function wrapper to exchange the stored callable object with

返回值

%280%29

例外

noexcept规格:

noexcept

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/实用程序/Functional/function/SWAP