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

std::swap(std::any)

STD::交换%28 std::任意%29

void swap(any& lhs, any& rhs(since C++17)

重载std::swap算法std::any.交换两项内容any对象通过调用lhs.swap(rhs)...

参数

lhs, rhs-objects to swap

返回值

%280%29

例外

noexcept规格:

noexcept

另见

swapswaps two any objects (public member function)

© cppreference.com

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

http://en.cppreference.com/w/cpp/实用程序/any/swap 2