STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::f_ident< T > Struct Template Reference

Defines an identity mapping function. More...

Public Member Functions

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

Public Types

typedef T index_type
 
typedef T gid_type
 
typedef f_ident< T > inverse
 

Detailed Description

template<typename T>
struct stapl::f_ident< T >

Defines an identity mapping function.

Template Parameters
TType of index

Member Function Documentation

◆ 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
RefGetterFunctor specified by an underlying container, that returns a reference to the container's element at given position.
IndicesIndices to be mapped.
Returns
Reference to the element at the mapped position.

The documentation for this struct was generated from the following file: