Namespaces
Variants
Actions

std::extents<IndexType,Extents...>::dynamic-index-inv

From cppreference.com
< cpp‎ | container‎ | mdspan‎ | extents
 
C++
 
Containers library
 
std::mdspan
 
std::extents
private:
    static constexpr auto /*dynamic-index-inv*/( rank_type i ) noexcept;
(since C++23)
(exposition only*)

Returns the number r such that in range [0r + 1) there are exactly [0i + 1) dynamic extents. If i <= rank_dynamic() is false, the behavior is undefined.

[edit] Parameters

i - the index

[edit] Return value

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

[edit] See also

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant