constructor · 8 overloads
std::layout_left_padded::mapping::mapping
- Header
<mdspan>- Scope
std::layout_left_padded::mapping- cppreference
- std::layout_left_padded nearest page
Constructors
Overloads
- (1)
constexpr mapping() noexcept; - (2)
constexpr mapping(const mapping& other) noexcept = default; - (3)
constexpr mapping(const extents_type& ext); - (4)
template<class LayoutLeftPaddedMapping> requires (md-left-padded-mapping<LayoutLeftPaddedMapping> && is_constructible_v<extents_type, typename LayoutLeftPaddedMapping::extents_type>) explicit(!is_convertible_v<typename LayoutLeftPaddedMapping::extents_type, extents_type> || (rank_ > 1 && (padding_value != dynamic_extent || LayoutLeftPaddedMapping::padding_value == dynamic_extent))) constexpr mapping( const LayoutLeftPaddedMapping& other); - (5)
template<class LayoutRightPaddedMapping> requires ((md-right-padded-mapping<LayoutRightPaddedMapping> || md-mapping-of<layout_right, LayoutRightPaddedMapping>) && rank <= 1 && is_constructible_v<extents_type, typename LayoutRightPaddedMapping::extents_type>) explicit(!is_convertible_v<typename LayoutRightPaddedMapping::extents_type, extents_type>) constexpr mapping( const LayoutRightPaddedMapping& other) noexcept; - (6)
template<class OtherExtents> requires is_constructible_v<extents_type, OtherExtents> explicit(!is_convertible_v<OtherExtents, extents_type>) constexpr mapping( const layout_left::mapping<OtherExtents>& other); - (7)
template<class OtherExtents> requires is_constructible_v<extents_type, OtherExtents> explicit(!( rank_ == 0 && is_convertible_v<OtherExtents, extents_type>)) constexpr mapping(const layout_stride::mapping<OtherExtents>& other); - (8)
template<class OtherIndexType> requires (is_convertible_v<OtherIndexType, index_type> && is_nothrow_constructible_v<index_type, OtherIndexType>) constexpr mapping(const extents_type& ext, OtherIndexType padding);