winss
Public Member Functions | List of all members
winss::MapKeyIterator< Key, Value > Class Template Reference

An iterator for keys of a map. More...

#include <map_value_iterator.hpp>

Inheritance diagram for winss::MapKeyIterator< Key, Value >:
Inheritance graph
[legend]
Collaboration diagram for winss::MapKeyIterator< Key, Value >:
Collaboration graph
[legend]

Public Member Functions

 MapKeyIterator ()
 Construct a new map key iterator. More...
 
 MapKeyIterator (MapIterator< Key, Value > it)
 Construct a map key iterator using a base iterator. More...
 
Key * operator-> ()
 Get a pointer to the current key. More...
 
Key operator* ()
 Get the dereferenced current key. More...
 

Detailed Description

template<typename Key, typename Value>
class winss::MapKeyIterator< Key, Value >

An iterator for keys of a map.

Template Parameters
KeyThe type of map key.
ValueThe type of map value.

Constructor & Destructor Documentation

template<typename Key , typename Value >
winss::MapKeyIterator< Key, Value >::MapKeyIterator ( )
inline

Construct a new map key iterator.

template<typename Key , typename Value >
winss::MapKeyIterator< Key, Value >::MapKeyIterator ( MapIterator< Key, Value >  it)
inlineexplicit

Construct a map key iterator using a base iterator.

Parameters
itThe map iterator.

Member Function Documentation

template<typename Key , typename Value >
Key winss::MapKeyIterator< Key, Value >::operator* ( )
inline

Get the dereferenced current key.

Returns
The key.
template<typename Key , typename Value >
Key* winss::MapKeyIterator< Key, Value >::operator-> ( )
inline

Get a pointer to the current key.

Returns
A pointer to the key.

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