Grantlee  0.3.0
Static Public Member Functions | List of all members
Grantlee::MappedValueGetter< Container > Struct Template Reference

#include <grantlee/containeraccessor.h>

Inheritance diagram for Grantlee::MappedValueGetter< Container >:
Inheritance graph
[legend]

Static Public Member Functions

static Container::mapped_type get (const typename Container::const_iterator it)
 

Additional Inherited Members

- Public Types inherited from Grantlee::Getter< Container >
typedef Container Container
 

Detailed Description

template<typename Container>
struct Grantlee::MappedValueGetter< Container >

Trait for retrieving a mapped value from a container iterator.

This can be trivially specialized in rare cases if supporting a third party container.

See Also
Third party containers

Definition at line 72 of file containeraccessor.h.

Member Function Documentation

template<typename Container >
static Container::mapped_type Grantlee::MappedValueGetter< Container >::get ( const typename Container::const_iterator  it)
inlinestatic

Returns the key available through the container iterator it.

Definition at line 77 of file containeraccessor.h.