DGtal  1.3.beta
Public Member Functions
DGtal::functors::Round< T > Struct Template Reference

Functor that rounds to the nearest integer. More...

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

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

Detailed Description

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

Functor that rounds to the nearest integer.

Template Parameters
TType to be rounded. If not specified (void), the type is deduced at evaluation.

Definition at line 151 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

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

Definition at line 154 of file BasicFunctors.h.

156  {
157  return std::round( value );
158  }

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