Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
uni20::MdspanLike Concept Reference

A readable type implementing the mdspan observers and multidimensional subscript contract. More...

#include <concepts.hpp>

Concept definition

template<class S>
detail::span_has_ranked_subscript<S>(std::make_index_sequence<detail::span_type_t<S>::rank()>{})
A model of the C++ mdspan AccessorPolicy named requirement.
Definition mdspan/concepts.hpp:62
A readable type implementing the mdspan observers and multidimensional subscript contract.
Definition mdspan/concepts.hpp:291

Detailed Description

A readable type implementing the mdspan observers and multidimensional subscript contract.

In addition to the standard mdspan descriptor aliases, a model exposes its static rank, extents, mapping, accessor, data handle, and an operator[] accepting one index per rank whose result is exactly reference.

Template Parameters
SThe type being tested for MdspanLike requirements.