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

Functor creates a reference either as a proxy or a view for a member of another proxy, based on is_container metafunction. More...

Public Member Functions

template<typename ParentAccessor >
result_type operator() (ParentAccessor const &acc) const
 

Public Types

typedef proxy< value_t, Accessor > result_type
 

Detailed Description

template<typename Accessor, bool = is_container< typename std::remove_const<typename Accessor::value_type>::type >::value>
struct stapl::member_referencer< Accessor, bool >

Functor creates a reference either as a proxy or a view for a member of another proxy, based on is_container metafunction.

Template Parameters
AccessorThe member_accessor instance used to reference the proxy member.

Primary template constructs a proxy with the accessor and returns it as the reference for the iterator dereference. The sole specialization instead heap allocates the proxy and uses it as the container for a view (the type of which is determined by container_traits.


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