std::swap(std::any)(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… std::swap(std::any)(3) from the C++ Standard Libary πŸ’…

okay so bestie, this page is from the C++ Standard Libary and it's all about the std::swap(std::any) situation. yes, the header literally says β€œLibary” β€” we are keeping it exactly as it appears, no editing the lore. 🫢


✨ NAME ✨

std::swap(std::any) β€” std::swap(std::any)


πŸ¦‹ Synopsis πŸ¦‹

Defined in header <any>:

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

Overloads the std::swap algorithm for std::any. Swaps the content of two any objects by calling lhs.swap(rhs). πŸ’–


🌸 Parameters 🌸

  • lhs, rhs β€” objects to swap

πŸŽ€ Return value πŸŽ€

(none)


πŸ”₯ See also πŸ”₯

  • swap β€” swaps two any objects (public member function)

mwah πŸ’‹ source: http://cppreference.com Β· date: 2024.06.10 Β· page: std::swap(std::any)(3) πŸŽ€

πŸ“¦ where this page comes from