std::layout...ng::extents(3)
πΈ NAME πΈ
okay so bestie, welcome to the std::layout...ng::extents(3) page from the C++ Standard Libary manual β section 3, no cap π
The name is literally std::layout_stride::mapping::extents β and then, because she contains multitudes, it's also std::layout_stride::mapping::extents again. Yes, the same thing twice. Iconic behavior, honestly π
β¨ Synopsis β¨
Here's the whole signature, and it's giving (since C++23):
constexpr const extents_type& extents() const noexcept;
This returns a const reference to the extents object. It is equivalent to return extents_;. That's the whole vibe β short, sweet, and const noexcept π«Ά
π¦ Parameters π¦
(none)
Not a single parameter. Zero. Zilch. The parameter section said "I'm free tonight" πβ¨
π Return value π
A const reference to the extents. That's it, that's the tea βπ
π Example π
This section is incomplete.
Reason: no example.
Not me showing up to the function party with no example ππ The page literally says it's incomplete, so we're not gonna invent one β we keep it real in this group chat.
π See also π
- obtains the extents object
extentsβ public member function ofstd::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>
iykyk, the extents girls are all connected π«
π Category π
Todo no example
We love a category that's honest about the to-do list π
mwah π β this little gem came from http://cppreference.com, stamped with 2024.06.10, and the page is std::layout...ng::extents(3) from the C++ Standard Libary manual. Slay, document, periodt π
π¦ 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