DGtal  0.9.4beta
Public Member Functions
DGtal::functors::Pair1st< ReturnType > Class Template Reference

#include <DGtal/base/BasicFunctors.h>

Inheritance diagram for DGtal::functors::Pair1st< ReturnType >:
[legend]

Public Member Functions

template<typename TPair >
ReturnType operator() (const TPair &aPair) const
 

Detailed Description

template<typename ReturnType>
class DGtal::functors::Pair1st< ReturnType >

Aim: Define a simple functor that returns the first member of a pair.

Description of template class 'Pair1st'

Template Parameters
ReturnTypetype of the first member of the pair

Definition at line 630 of file BasicFunctors.h.

Member Function Documentation

template<typename ReturnType>
template<typename TPair >
ReturnType DGtal::functors::Pair1st< ReturnType >::operator() ( const TPair &  aPair) const
inline

Operator

Template Parameters
TPairmodel of CPair
Parameters
aPairinput pair
Returns
first member of aPair.

Definition at line 644 of file BasicFunctors.h.

645  {
646  return aPair.first;
647  }

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