std::extent...ic-index-inv(3)

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

πŸ’… NAME πŸ’…

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

Okay bestie, this page is std::extent...ic-index-inv(3) from the C++ Standard Libary manual β€” yes, that’s the exact spelling on the page, we’re keeping it πŸ’–. It’s all about std::extents::dynamic-index-inv, and it’s giving very private-helper energy.


🌸 Synopsis 🌸

          private:

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

So it’s private: β€” behind the velvet rope, no cap. It’s a template< class OtherIndexType >, it’s been around (since C++23), and it’s marked (exposition only*). The function itself is static constexpr auto /*dynamic-index-inv*/( rank_type i ) and it’s noexcept;.

Here’s the lore: it returns the number r such that in range [0, r + 1) there are exactly [0, i + 1) dynamic extents. And if i <= rank_dynamic() is false, the behavior is undefined β€” literally do not go there, bestie 😭.


πŸŽ€ Parameters πŸŽ€

  • i β€” the index.

πŸ¦‹ Return value πŸ¦‹

The minimum value of r such that dynamic-index(r + 1) == i + 1 is true.


🌈 Example 🌈

This section is incomplete.

Reason: no example.


⭐ See also ⭐

This section is incomplete.


πŸ‘‘ Categories πŸ‘‘

  • Todo no example
  • Todo without reason

That’s the whole vibe check, bestie 🫢. Source: http://cppreference.com, dated 2024.06.10, footer page: std::extent...ic-index-inv(3). Stay iconic, and may your r always be minimal βœ¨πŸ’…

πŸ“¦ where this page comes from