DGtal  1.2.0
Public Member Functions
DGtal::functors::Round< void > Struct Reference

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

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

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

Detailed Description

Functor that rounds to the nearest integer.

This specialization deduces the value type at evaluation.

See also
Round

Definition at line 168 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

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

Definition at line 172 of file BasicFunctors.h.

174  {
175  return std::round( value );
176  }

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