DGtal  0.9.3beta
Public Member Functions
DGtal::functors::Pair2nd< ReturnType > Class Template Reference

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

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

Detailed Description

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

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

Description of template class 'Pair2nd'

Template Parameters
ReturnTypetype of the second member of the pair

Definition at line 659 of file BasicFunctors.h.

Member Function Documentation

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

Operator

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

Definition at line 673 of file BasicFunctors.h.

674  {
675  return aPair.second;
676  }

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