member function template · 3 overloads
std::mdspan::at
- Header
<mdspan>- Scope
std::mdspan- cppreference
- std::mdspan nearest page
Overloads
- (1)
template<class OtherIndexType> requires (is_convertible_v<const OtherIndexType&, index_type> && is_nothrow_constructible_v<index_type, const OtherIndexType&>) constexpr reference at(span<OtherIndexType, rank()> indices) const; - (2)
template<class... OtherIndexTypes> requires ((is_convertible_v<OtherIndexTypes, index_type> && ...) && (is_nothrow_constructible_v<index_type, OtherIndexTypes> && ...) && sizeof...(OtherIndexTypes) == rank( )) constexpr reference at(OtherIndexTypes... indices) const; - (3)
template<class OtherIndexType> requires (is_convertible_v<const OtherIndexType&, index_type> && is_nothrow_constructible_v<index_type, const OtherIndexType&>) constexpr reference at(const array<OtherIndexType, rank()>& indices) const;