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

#include <DGtal/base/BasicFunctors.h>

Inheritance diagram for DGtal::functors::Pair1st< ReturnType >:

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

◆ operator()()

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


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