DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions
DGtal::functors::Floor< T > Struct Template Reference

Functor that rounds down. More...

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

auto operator() (const T &value) const -> decltype(std::floor(value))
 

Detailed Description

template<typename T = void>
struct DGtal::functors::Floor< T >

Functor that rounds down.

Template Parameters
TType to be rounded. If not specified (void), the type is deduced at evaluation.
Examples
tutorial-examples/volDTGranulo.cpp.

Definition at line 184 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

template<typename T = void>
auto DGtal::functors::Floor< T >::operator() ( const T &  value) const -> decltype(std::floor(value))
inline

Definition at line 187 of file BasicFunctors.h.

189 {
190 return std::floor( value );
191 }

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