std::swap(std::mdspan)(3)
π NAME π
okay so bestie, welcome to std::swap(std::mdspan)(3) from the C++ Standard Libary (yes, that spelling is straight from the header, donβt come for me π). The name is literally std::swap(std::mdspan) - std::swap(std::mdspan). Iconic. No notes. β¨
β¨ Synopsis β¨
Defined in header <mdspan>:
friend constexpr void swap( mdspan& x, mdspan& y ) noexcept;
(since C++23) β okay so this is the friend function that overloads the std::swap algorithm for std::mdspan. It exchanges the state of x with that of y. Slay. π
Given ptr_, map_, and acc_ as exposition-only data members, itβs equivalent to:
std::swap(x.ptr_, y.ptr_);
std::swap(x.map_, y.map_);
std::swap(x.acc_, y.acc_);
π Parameters π
x,y-mdspanobjects whose states to swap
π Return value π
(none). Literally none. No return value, no drama. periodt. π«Ά
π¦ Example π¦
This section is incomplete Reason: no example
π no example yet, but the reason is literally βno example.β Respect the honesty. π
π See also π
This section is incomplete. The see-also list is still cooking π§
π·οΈ Categories: π·οΈ
Todo no exampleTodo without reason
mwah π this was std::swap(std::mdspan)(3) β source/version: http://cppreference.com, date: 2024.06.10. bye bestie, go swap those mdspans π«Άπ
π¦ 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