Grantlee  0.4.0
Static Public Member Functions
Grantlee::KeyGetter< Container > Struct Template Reference

#include <grantlee/containeraccessor.h>

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

List of all members.

Static Public Member Functions

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

Detailed Description

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

Trait for retrieving a key 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 53 of file containeraccessor.h.


Member Function Documentation

template<typename Container >
static Container::key_type Grantlee::KeyGetter< Container >::get ( const typename Container::const_iterator  it) [inline, static]

Returns the key available through the container iterator it.

Definition at line 58 of file containeraccessor.h.