std::layout...ng::extents(3)

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

🌸 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 of std::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