constructor · 5 overloads
std::extents::extents
- Header
<mdspan>- Scope
std::extents- cppreference
- std::extents nearest page
Constructors
Overloads
- (1)
constexpr extents() noexcept = default; - (2)
template<class OtherIndexType, size_t OtherExtents...> requires (compatible<OtherExtents...>()) explicit(explicit-from<OtherIndexType, OtherExtents...>( )) constexpr extents(const extents<OtherIndexType, OtherExtents...>& other) noexcept; - (3)
template<class... OtherIndexTypes> requires ((is_convertible_v<OtherIndexTypes, index_type> && ...) && (is_nothrow_constructible_v<index_type, OtherIndexTypes> && ...) && (sizeof...(OtherIndexTypes) == rank_dyn_ || sizeof...(OtherIndexTypes) == rank())) explicit constexpr extents(OtherIndexTypes... exts) noexcept; - (4)
template<class OtherIndexType, size_t N> requires (is_convertible_v<const OtherIndexType&, index_type> && is_nothrow_constructible_v<index_type, const OtherIndexType&> && (N == rank_dyn_ || N == rank( ))) explicit(N != rank_dyn_) constexpr extents(span<OtherIndexType, N> exts) noexcept; - (5)
template<class OtherIndexType, size_t N> requires (is_convertible_v<const OtherIndexType&, index_type> && is_nothrow_constructible_v<index_type, const OtherIndexType&> && (N == rank_dyn_ || N == rank( ))) explicit(N != rank_dyn_) constexpr extents(const array<OtherIndexType, N>& exts) noexcept;