std::any::swap(3)

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

πŸ’… std::any::swap πŸ’…

okay bestie, this page is from the C++ Standard Libary and it is lowkey tiny, highkey iconic. no cap. 🫢


✨ NAME ✨

std::any::swap β€” the function literally named std::any::swap. yes, that's the whole name, and yes, she ate. πŸ’–


🌸 Synopsis 🌸

void swap( any& other ) noexcept;  (since C++17)

Swaps the content of two any objects. periodt. πŸ’…


πŸŽ€ Parameters πŸŽ€

  • other β€” object to swap with

πŸ¦‹ Return value πŸ¦‹

(none) β€” literally no return value, bestie. 😭


signing off 🫢 source/version: http://cppreference.com; date: 2024.06.10. πŸ’œ

πŸ“¦ where this page comes from