DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions
DGtal::functors::Pair1st< ReturnType > Class Template Reference

Aim: Define a simple functor that returns the first 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::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 756 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

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

Operator

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

Definition at line 770 of file BasicFunctors.h.

771 {
772 return aPair.first;
773 }

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