Panda3D
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
first_of_pair_iterator< pair_iterator > Class Template Reference

This is an iterator adaptor that converts any iterator that returns a pair (e.g. More...

#include "iterator_types.h"

Inheritance diagram for first_of_pair_iterator< pair_iterator >:

Public Types

typedef pair_iterator::value_type::first_type value_type
 

Public Member Functions

 first_of_pair_iterator (const pair_iterator &init)
 
value_type operator* ()
 

Detailed Description

template<class pair_iterator>
class first_of_pair_iterator< pair_iterator >

This is an iterator adaptor that converts any iterator that returns a pair (e.g.

a map iterator) into one that returns just the first component of that pair.

Definition at line 25 of file iterator_types.h.

Member Typedef Documentation

◆ value_type

template<class pair_iterator >
typedef pair_iterator::value_type::first_type first_of_pair_iterator< pair_iterator >::value_type

Definition at line 27 of file iterator_types.h.

Constructor & Destructor Documentation

◆ first_of_pair_iterator()

template<class pair_iterator >
first_of_pair_iterator< pair_iterator >::first_of_pair_iterator ( const pair_iterator & init)
inline

Definition at line 30 of file iterator_types.h.

Member Function Documentation

◆ operator*()

template<class pair_iterator >
value_type first_of_pair_iterator< pair_iterator >::operator* ( )
inline

Definition at line 32 of file iterator_types.h.


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