std::any::swap

From cppreference.com
< cpplrm; | utilitylrm; | any
std::any
Member functions
Modifers
any::swap
Observers
Non-member functions
void swap(any& other) noexcept;
(since C++17)

Swaps the content of two any objects.

Parameters

other - object to swap with

Return value

(none)