DGtal  0.9.4.1
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 653 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 667 of file BasicFunctors.h.

668  {
669  return aPair.second;
670  }

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