Go to Overview over all GrAL packages.
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

get_first Struct Template Reference
[Accessors, Function Objects and Iterator Adaptors]

Get first element of pair. More...

#include <mapped-value-iterator.h>

List of all members.

Public Types

typedef P argument_type
typedef P::first_type result_type
typedef P::first_type value_type

Public Methods

value_type const & operator() (P const &p) const

Static Public Methods

value_type const & value (const P &p)


Detailed Description

template<class P>
struct get_first< P >

Get first element of pair.

get_first , get_second are simple function objects to select fields of pairs.

Target type for parameter P is pair<T1,T2> .

get_first , get_second are models of

Adaptable Unary Function.

Definition at line 34 of file mapped-value-iterator.h.


Member Typedef Documentation

template<class P>
typedef P get_first::argument_type
 

Definition at line 35 of file mapped-value-iterator.h.

template<class P>
typedef P::first_type get_first::result_type
 

Definition at line 36 of file mapped-value-iterator.h.

template<class P>
typedef P::first_type get_first::value_type
 

Definition at line 37 of file mapped-value-iterator.h.

Referenced by operator(), and value.


Member Function Documentation

template<class P>
value_type const& get_first< P >::value const P &    p [inline, static]
 

Definition at line 42 of file mapped-value-iterator.h.

References value_type.

template<class P>
value_type const& get_first< P >::operator() P const &    p const [inline]
 

Definition at line 43 of file mapped-value-iterator.h.

References value_type.


The documentation for this struct was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 15:57:16 2002 for Sequence by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000