std::layout_left::mapping<Extents>:: stride
|
(C++17)
|
||||
| Sequence | ||||
|
(C++11)
|
||||
|
(C++26)
|
||||
|
(C++26)
|
||||
|
(C++11)
|
||||
| Associative | ||||
| Unordered associative | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Adaptors | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| Views | ||||
|
(C++20)
|
||||
|
(C++23)
|
||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Observers | ||||
|
mapping::stride
|
||||
| Non-member functions | ||||
|
constexpr
index_type stride
(
rank_type i
)
const
noexcept
;
|
(since C++23) | |
Returns the stride of the mapping at a rank index
i
. Equivalent to
return
extents
(
)
.
fwd-prod-of-extents
(
i
)
;
.
This overload participates in overload resolution only if extents_type :: rank ( ) > 0 is true .
The behavior is undefined if i >= extents_type :: rank ( ) is true .
Contents |
Parameters
| i | - |
a rank index in the range
[
0
,
extents_type
::
rank
(
)
)
|
Return value
The stride at a specified rank index.
Example
|
This section is incomplete
Reason: no example |
See also
|
obtains the stride along the specified dimension
(public member function of
std::layout_stride::mapping<Extents>
)
|
|
|
obtains the stride along the specified dimension
(public member function of
std::mdspan<T,Extents,LayoutPolicy,AccessorPolicy>
)
|