template< class Extents >
class layout_right::mapping;
The class template layout_right::mapping
controls how multidimensional indices are mapped in a row-major manner to a one-dimensional value representing the offset. The mapping has stride 1 at rightmost extent and strides increase right-to-left as the products of extents.
Every specialization of mapping
is a LayoutMapping and a TriviallyCopyable type which satisfies regular
.
The program is ill-formed if the size of the multidimensional index space Extents() is not representable as a value of type Extents::index_type when Extents::rank_dynamic() is â0â.
[edit] Template parameters Extents - specifies number of dimensions, their sizes, and which are known at compile time. Must be a specialization ofstd::extents
. [edit] Member types Member name Definition extents_type
Extents
index_type
extents_type::index_type
size_type
extents_type::size_type
rank_type
extents_type::rank_type
layout_type
std::layout_right [edit] Data members Member Definition extents_type
extents_
(private) the extents object
operator=
(explicitly defaulted)
assigns a mappingstd::layout_left
)[edit] a layout mapping of layout_stride
std::layout_stride
)[edit]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4