std::extents<IndexType,Extents...>::static_extent - cppreference.com (original) (raw)

| static constexpr std::size_t static_extent( rank_type i ) noexcept; | | (since C++23) | | ------------------------------------------------------------------------------------------------------ | | ------------- |

Returns static extent size of an extents at the rank index i. If the rank index i is a dynamic extent, returns std::dynamic_extent.

[edit] Parameters

i - The rank index to get the static extent size of

[edit] Return value

The static extent size or std::dynamic_extent value.

[edit] Example

[edit] See also

| | returns dynamic extent size of an extents at a certain rank index (public member function) [edit] | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | obtains the size of an array type along a specified dimension (class template) [edit] |