std::experi...tagged::swap(3)
hey bestie! welcome to std::experi...tagged::swap(3) from the C++ Standard Libary manual β yes, βLibaryβ is exactly how the manual name is spelled here, and we are keeping it, periodt. this page is your little group chat about swapping tagged things, and the vibe check says: conditionally noexcept, no cap. π
β¨
π NAME π
std::experimental::ranges::tagged::swapβstd::experimental::ranges::tagged::swap
thatβs literally the whole NAME section, bestie β it lists the same name twice and weβre not editing the lore π«Ά
β¨ SYNOPSIS β¨
constexpr void swap( tagged& rhs ) noexcept(/* see below */)
requires Swappable<Base>;
okay so this is the member swapsie: it swaps the contents of *this and rhs, as if by ranges::swap(static_cast<Base&>(*this), static_cast<Base&>(rhs));. literally thatβs the move. πΈ
π EXCEPTIONS π
noexcept specification:
noexcept(noexcept(ranges::swap(std::declval<Base&>(),
std::declval<Base&>())))
this is where the conditionally noexcept energy lives β see below, as promised. π
π¦ SEE ALSO π¦
ranges::swap(ranges::tagged)specializes swap for tagged objects (function)
iykyk: thatβs the function that specializes swap for tagged objects. π¦
π CATEGORY π
Category:
- conditionally noexcept
signed off with love and zero proper-manpage energy: source is http://cppreference.com, version/date is 2024.06.10, and the footer title is std::experi...tagged::swap(3). mwah πππ¦
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms