OpenKalman
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
std::experimental::extents< IndexType, Extents > Class Template Reference

Public Types

using index_type = IndexType
 
using size_type = make_unsigned_t< index_type >
 
using rank_type = size_t
 

Public Member Functions

MDSPAN_INLINE_FUNCTION constexpr index_type extent (rank_type r) const noexcept
 
 MDSPAN_TEMPLATE_REQUIRES (class... OtherIndexTypes,(_MDSPAN_FOLD_AND(_MDSPAN_TRAIT(is_convertible, OtherIndexTypes, index_type)) &&_MDSPAN_FOLD_AND(_MDSPAN_TRAIT(is_nothrow_constructible, index_type, OtherIndexTypes)) &&(sizeof...(OtherIndexTypes)==m_rank||sizeof...(OtherIndexTypes)==m_rank_dynamic))) MDSPAN_INLINE_FUNCTION const expr explicit extents(OtherIndexTypes... dynvals) noexcept
 
 MDSPAN_TEMPLATE_REQUIRES (class OtherIndexType, size_t N,(_MDSPAN_TRAIT(is_convertible, OtherIndexType, index_type) &&_MDSPAN_TRAIT(is_nothrow_constructible, index_type, OtherIndexType) &&(N==m_rank||N==m_rank_dynamic))) MDSPAN_INLINE_FUNCTION const expr extents(const array< OtherIndexType
 
 class::::::DynamicValues ((R< m_rank) &&(static_extent(R)==dynamic_extent))) MDSPAN_INLINE_FUNCTION vals_t __construct_vals_from_extents(std
 

Static Public Member Functions

MDSPAN_INLINE_FUNCTION static constexpr rank_type rank () noexcept
 
MDSPAN_INLINE_FUNCTION static constexpr rank_type rank_dynamic () noexcept
 
MDSPAN_INLINE_FUNCTION static constexpr size_t static_extent (rank_type r) noexcept
 

Public Attributes

N &exts noexcept: m_vals(std::move(exts)) {}private: MDSPAN_TEMPLATE_REQUIRES( size_t DynCount
 
N &exts size_t R
 

Friends

template<class OtherIndexType , size_t... OtherExtents>
MDSPAN_INLINE_FUNCTION friend constexpr bool operator== (const extents &lhs, const extents< OtherIndexType, OtherExtents... > &rhs) noexcept
 
template<class OtherIndexType , size_t... OtherExtents>
MDSPAN_INLINE_FUNCTION friend constexpr bool operator!= (extents const &lhs, extents< OtherIndexType, OtherExtents... > const &rhs) noexcept
 

The documentation for this class was generated from the following file: