Defines an identity mapping function.
More...
|
gid_type | operator() (index_type const &x) const |
|
template<typename RefGetter , typename... Indices> |
std::result_of< RefGetter(Indices...)>::type | apply_get (RefGetter const &get_reference, Indices... indices) const |
| Applies the mapping on the input indices and calls the get_reference functor with the mapped indices. More...
|
|
|
typedef T | index_type |
|
typedef T | gid_type |
|
typedef f_ident< T > | inverse |
|
template<typename T>
struct stapl::f_ident< T >
Defines an identity mapping function.
- Template Parameters
-
◆ apply_get()
template<typename T>
template<typename RefGetter , typename... Indices>
std::result_of<RefGetter(Indices...)>::type stapl::f_ident< T >::apply_get |
( |
RefGetter const & |
get_reference, |
|
|
Indices... |
indices |
|
) |
| const |
Applies the mapping on the input indices and calls the get_reference
functor with the mapped indices.
- Template Parameters
-
RefGetter | Functor specified by an underlying container, that returns a reference to the container's element at given position. |
Indices | Indices to be mapped. |
- Returns
- Reference to the element at the mapped position.
The documentation for this struct was generated from the following file:
- views/mapping_functions/identity.hpp