std::any::swap

< cpp‎ | utility‎ | any
void swap( any& other ) noexcept;
(C++17 起)

交换两个 any 对象的内容。

参数

other - 要交换的对象

返回值

(无)