Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::experimental::swap(std::experimental::any)

Swaps the content of two any objects. Calls lhs.swap(rhs).

NotebookLM
void swap(any& lhs, any& rhs) noexcept;
(library fundamentals TS)

Swaps the content of two any objects. Calls lhs.swap(rhs).

Parameters

lhs, rhs - objects to swap

Return value

(none)

See also

swaps two any objects
(public member function)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.