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

Detect mdspan-like objects without depending on trace or tensor. More...

#include <presentation_mdspan.hpp>

Concept definition

template<typename MDS>
concept uni20::presentation::mdspan_like = requires(std::remove_cvref_t<MDS> const& mds) {
typename std::remove_cvref_t<MDS>::element_type;
typename std::remove_cvref_t<MDS>::index_type;
{ std::remove_cvref_t<MDS>::rank() } -> std::convertible_to<std::size_t>;
{ mds.extent(std::size_t{0}) } -> std::convertible_to<std::size_t>;
}
Detect mdspan-like objects without depending on trace or tensor.
Definition presentation_mdspan.hpp:70

Detailed Description

Detect mdspan-like objects without depending on trace or tensor.

Template Parameters
MDSCandidate mdspan type.