Namespaces
Variants
Views
Actions

std::layout_left_padded

From cppreference.com
< cpp‎ | container‎ | mdspan
Revision as of 07:38, 2 July 2024 by Cooky (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
Defined in header <mdspan>
template< std::size_t PaddingValue = std::dynamic_extent >
struct layout_left_padded;
(since C++26)

Every specialization of layout_left_padded is a LayoutMappingPolicy and trivial type which provides a layout mapping that is similar to layout_left::mapping except that it has a padding stride.

Let m be the instance of the mapping type layout_left_padded::mapping. The padding stride of the mapping is the second stride m.stride(1) which is guaranteed to be at least the first extent value m.extent(0), called extent to pad.

Member class templates

a layout mapping of layout_left_padded
(public member class template)[edit]

See also

column-major multidimensional array layout mapping policy; leftmost extent has stride 1
(class) [edit]
a layout mapping policy with user-defined strides
(class) [edit]