|
dune-common
2.11
|
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.
More...
#include <dune/common/std/default_accessor.hh>
Public Types | |
| using | element_type = Element |
| using | data_handle_type = element_type * |
| using | reference = element_type & |
| using | offset_policy = default_accessor |
Public Member Functions | |
| constexpr | default_accessor () noexcept=default |
| Default constructor. More... | |
| 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. More... | |
| 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 More... | |
| 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 More... | |
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.
| 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. |
| using Dune::Std::default_accessor< Element >::data_handle_type = element_type* |
| using Dune::Std::default_accessor< Element >::element_type = Element |
| using Dune::Std::default_accessor< Element >::offset_policy = default_accessor |
| using Dune::Std::default_accessor< Element >::reference = element_type& |
|
defaultnoexcept |
Default constructor.
|
inlinenoexcept |
Converting constructor from an accessor with different element type.
|
inlinenoexcept |
Return a reference to the i'th element in the data range starting at p
|
inlinenoexcept |
Return a data handle to the i'th element in the data range starting at p
1.8.14