|
| constexpr | default_accessor () noexcept=default |
| | Default constructor.
|
| template<class OtherElement, std::enable_if_t< std::is_convertible_v< OtherElement(*)[], Element(*)[]>, int > = 0> |
| constexpr | default_accessor (default_accessor< OtherElement >) noexcept |
| | Converting constructor from an accessor with different element type.
|
| 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.
|
| 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.
|
template<class Element>
class Dune::Std::default_accessor< Element >
A type for indexed access to elements of mdspan.
The default_accessor class template is the default AccessorPolicy used by mdspan if no user-specified accessor policy is provided.
- Template Parameters
-
| Element | The element type. Shall be a complete object type that is neither an abstract class type nor an array type. Otherwise, the program is ill-formed. |