5 #ifndef DUNE_COMMON_STD_DEFAULT_ACCESSOR_HH 6 #define DUNE_COMMON_STD_DEFAULT_ACCESSOR_HH 22 template <
class Element>
37 template <class OtherElement,
38 std::enable_if_t<
std::is_convertible_v<OtherElement(*)[], Element(*)[]>,
int> = 0>
56 #endif // DUNE_COMMON_STD_DEFAULT_ACCESSOR_HH Namespace for features backported from new C++ standards.
Definition: algorithm.hh:19
constexpr data_handle_type offset(data_handle_type p, std::size_t i) const noexcept
Return a data handle to the i'th element in the data range starting at p
Definition: default_accessor.hh:48
constexpr default_accessor() noexcept=default
Default constructor.
Element element_type
Definition: default_accessor.hh:26
element_type * data_handle_type
Definition: default_accessor.hh:27
I i
Definition: hybridmultiindex.hh:328
A type for indexed access to elements of mdspan.The default_accessor class template is the default Ac...
Definition: default_accessor.hh:23
element_type & reference
Definition: default_accessor.hh:28
constexpr reference access(data_handle_type p, std::size_t i) const noexcept
Return a reference to the i'th element in the data range starting at p
Definition: default_accessor.hh:42