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

Function object which returns the application of operator[] on the input parameter, passing a data member as the index argument. More...

Public Member Functions

 get_element_func (std::size_t idx)
 
result_type operator() (T const &t) const
 

Public Types

typedef T::value_type result_type
 

Public Attributes

std::size_t m_idx
 

Detailed Description

template<typename T>
struct stapl::composition::get_element_func< T >

Function object which returns the application of operator[] on the input parameter, passing a data member as the index argument.

This functor is used by the map_view class to redirect requests for elements not on this location to the sibling structure on a remote location.

Parameters
TThe type of the parameter to the function operator.

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