std::any::swap

From cppreference.com
< cpp‎ | utility‎ | any
 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
void swap( any& other ) noexcept;
(since C++17)

Swaps the content of two any objects.

Parameters

other - object to swap with

Return value

(none)