DGtal 2.0.0
Loading...
Searching...
No Matches
DGtal::functors::Round< void > Struct Reference

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

#include <DGtal/base/BasicFunctors.h>

Inheritance diagram for DGtal::functors::Round< void >:
[legend]

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 }
Functor that rounds to the nearest integer.

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