DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions
DGtal::functors::Trunc< void > Struct Reference

Functor that rounds towards zero. More...

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

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

Detailed Description

Functor that rounds towards zero.

This specialization deduces the value type at evaluation.

See also
Trunc

Definition at line 267 of file BasicFunctors.h.

Member Function Documentation

◆ operator()()

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

Definition at line 271 of file BasicFunctors.h.

273 {
274 return std::trunc( value );
275 }

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