constructor · 6 overloads
std::layout_stride::mapping::mapping
- Header
<mdspan>- Scope
std::layout_stride::mapping- cppreference
- std::layout_stride nearest page
Constructors
Overloads
- (1)
constexpr mapping() noexcept; - (2)
constexpr mapping(const mapping& other) noexcept = default; - (3)
template<class StridedLayoutMapping> requires (md-layout-mapping-alike<StridedLayoutMapping> && is_constructible_v<extents_type, typename StridedLayoutMapping::extents_type> && StridedLayoutMapping::is_always_unique( ) && StridedLayoutMapping::is_always_strided()) explicit(!( is_convertible_v<typename StridedLayoutMapping::extents_type, extents_type> && (md-mapping-of<layout_left, StridedLayoutMapping> || md-mapping-of<layout_right, StridedLayoutMapping> || md-left-padded-mapping<StridedLayoutMapping> || md-right-padded-mapping<StridedLayoutMapping> || md-mapping-of<layout_stride, StridedLayoutMapping>))) constexpr mapping(const StridedLayoutMapping& other) noexcept; - (4)
template<class OtherIndexType> requires (is_convertible_v<const OtherIndexType&, index_type> && is_nothrow_constructible_v<index_type, const OtherIndexType&>) constexpr mapping( const extents_type& e, span<OtherIndexType, rank_> s) noexcept; - (5)
template<class OtherIndexType> requires (is_convertible_v<const OtherIndexType&, index_type> && is_nothrow_constructible_v<index_type, const OtherIndexType&>) constexpr mapping( const extents_type& e, const array<OtherIndexType, rank_>& s) noexcept; - (6)
constexpr mapping( /* implementation-defined */, const extents_type& e, const array<index_type, rank_>& s) noexcept;