DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions
DGtal::functors::Identity Struct Reference

Aim: Define a simple default functor that just returns its argument. More...

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

template<typename T >
operator() (const T &aT) const
 

Detailed Description

Aim: Define a simple default functor that just returns its argument.

Description of template class 'functors::Identity'

Examples
geometry/volumes/distance/exampleFMM3D.cpp, images/exampleConstImageAdapter.cpp, images/extract2DImagesFrom3D.cpp, images/extract2DImagesFrom3DandVisu.cpp, images/extract2DSlicesImagesFrom3D.cpp, images/imageBasicSubsampling.cpp, io/viewers/viewer3D-8-2DSliceImages.cpp, io/viewers/viewer3D-8bis-2Dimages.cpp, and tutorial-examples/2DSliceImageFromVol.cpp.

Definition at line 287 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

template<typename T >
T DGtal::functors::Identity::operator() ( const T &  aT) const
inline

Operator

Returns
aT.
Template Parameters
Tany type

Definition at line 296 of file BasicFunctors.h.

297 {
298 return aT;
299 }

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