Dune Core Modules (unstable)

Dune::Std::default_accessor< Element > Class Template Reference

A type for indexed access to elements of mdspan. More...

#include <dune/common/std/default_accessor.hh>

Public Member Functions

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
 

Detailed Description

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
ElementThe 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.

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 20, 23:30, 2024)