std::layout_right_padded
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)
layout_right_padded
(C++26)
(C++26)
(C++26)
(C++26)
Defined in header
<mdspan>
template< std::size_t PaddingValue = std::dynamic_extent >
struct layout_right_padded;
(since C++26)
struct layout_right_padded;
Every specialization of layout_right_padded
is a LayoutMappingPolicy which provides a layout mapping that is similar to layout_right::mapping
except that it has a padding stride.
Every specialization of layout_right_padded
is TriviallyCopyable, and std::is_trivially_default_constructible_v <T> is true for any such specialization T
.
Let m be the instance of the mapping type layout_right_padded::mapping
. The padding stride of the mapping is the second to last stride m.stride(rank() - 2) which is guaranteed to be at least the last extent value m.extent(rank() - 1), called extent to pad.
[edit] Nested class templates
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
(C++23)
1
(class) [edit]