DGtal  1.5.beta
DGtal::functors::Pair2nd< ReturnType > Class Template Reference

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

#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 785 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

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 799 of file BasicFunctors.h.

800  {
801  return aPair.second;
802  }

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