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


Template Parameters
TPairmodel of CPair
aPairinput pair
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: