std::extents<IndexType,Extents...>::dynamic-index-inv
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Containers library
(C++17)
(C++11)
(C++26)
(C++26)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++23)
(C++23)
(C++20)
(C++23)
Tables
std::mdspan
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
(C++26)
std::extents
extents::dynamic-index-inv
private:
static constexpr auto /*dynamic-index-inv*/( rank_type i ) noexcept;
(since C++23) static constexpr auto /*dynamic-index-inv*/( rank_type i ) noexcept;
(exposition only*)
Returns the number r
such that in range [
0,
r + 1)
there are exactly [
0,
i + 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
This section is incomplete