4#ifndef TETL_MDSPAN_DEFAULT_ACCESSOR_HPP
5#define TETL_MDSPAN_DEFAULT_ACCESSOR_HPP
7#include <etl/_cstddef/size_t.hpp>
8#include <etl/_type_traits/is_convertible.hpp>
12template <
typename ElementType>
15 using element_type = ElementType;
16 using reference = ElementType&;
17 using data_handle_type = ElementType*;
21 template <
typename OtherElementType>
22 requires is_convertible_v<OtherElementType (*)[], element_type (*)[]>
27 [[
nodiscard]]
constexpr auto access(data_handle_type p, size_t i)
const noexcept -> reference
32 [[
nodiscard]]
constexpr auto offset(data_handle_type p, size_t i)
const noexcept -> data_handle_type
Definition adjacent_find.hpp:9
Definition default_accessor.hpp:13
constexpr auto access(data_handle_type p, size_t i) const noexcept -> reference
Definition default_accessor.hpp:27
constexpr default_accessor() noexcept=default
constexpr default_accessor(default_accessor< OtherElementType >) noexcept
Definition default_accessor.hpp:23
constexpr auto offset(data_handle_type p, size_t i) const noexcept -> data_handle_type
Definition default_accessor.hpp:32