std::extent...ynamic-index(3)

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

πŸ’– std::extent...ynamic-index(3) πŸ’–

okay bestie, welcome to a page from the C++ Standard Libary manual β€” yes, that’s the manual name, and we’re keeping it exactly as it appears. This one is all about std::extents::dynamic-index, and it’s giving β€œprivate exposition-only helper” energy, no cap.


✨ NAME ✨

std::extents::dynamic-index β€” std::extents::dynamic-index.

That’s it. That’s the name. Iconic, honestly.

πŸ¦‹ Synopsis πŸ¦‹

So this thing is private: and it’s marked as exposition only, since C++23. Here’s the signature in all its exact glory:

private:

    template< class OtherIndexType >
(since C++23)
                                                              (exposition only*)
    static constexpr auto /*dynamic-index*/( rank_type i )
noexcept;

It returns the number of dynamic extents below index i.

And bestie, listen: if i <= rank() is false, the behavior is undefined. Not me testing that and pretending it’s fine. Do not. πŸ’€

🌸 Parameters 🌸

  • i β€” the index. That’s the whole parameter list, bestie.

πŸŽ€ Return value πŸŽ€

The return value is the number of E[r] with r < i for which E[r] is a dynamic extent. Slay, that’s the fact.

🧚 Example 🧚

This section is incomplete. Reason: no example

Literal tumbleweed energy 😭 but that’s what the page says.

πŸ¦‹ See also πŸ¦‹

This section is incomplete.

πŸ‘‘ Categories πŸ‘‘

  • Todo no example
  • Todo without reason

Sign-off tea: this was from http://cppreference.com, dated 2024.06.10, and the page tag is std::extent...ynamic-index(3). bye bestie, mwah πŸ’‹πŸ’…

πŸ“¦ where this page comes from