std::mdspan::operator=(3)
π NAME π
std::mdspan::operator= β that's the whole name, icon, no notes. It's the assignment operator for std::mdspan, and yes bestie the manpage literally just repeats the name back at you twice π«Ά
π¦ Synopsis π¦
ok so first thing, it's Defined in header <mdspan> β¨
Here's overload (1), a constexpr one, and it's marked since C++23 π:
constexpr mdspan& operator=( const mdspan& rhs ) = default;
And here's overload (2), also constexpr, also since C++23 πΈ:
constexpr mdspan& operator=( mdspan&& rhs ) = default;
So what's actually happening? It Assigns rhs to *this with:
- defaulted copy assignment operator,
- defaulted move assignment operator.
That's it. That's the whole vibe β both of them are = default, so the compiler is doing the work, not us π
π Parameters π
otherβ anothermdspanto copy or move from
(and yeah, the synopsis up there calls the same thing rhs while this section calls it other β that's just how the page is written, iykyk π)
π Return value π
*this β that's it, that's the return, it hands you back yourself π
π Example π
This section is incomplete Reason: no example
π literally nothing to show you bestie, they left it blank. Not me wanting a cute little example here... but nope, moving on.
π§ See also π§
This section is incomplete
also empty π the whole back half of this page is under construction fr fr
β Categories β
- Todo no example
- Todo without reason
and that's the page, bestie! source is http://cppreference.com, version date 2024.06.10, and the whole thing is filed under std::mdspan::operator=(3) β mwah, go assign something ππ
π¦ 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