Functor creates a reference either as a proxy or a view, based on use_view_as_reference metafunction. More...
Public Member Functions | |
result_type | operator() (Accessor const &acc) const |
Public Types | |
typedef proxy< value_t, Accessor > | result_type |
Functor creates a reference either as a proxy or a view, based on use_view_as_reference metafunction.
Accessor | The accessor created by the derived iterator class. |
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.