ChimeraTK-DeviceAccess 03.26.00
Loading...
Searching...
No Matches
ChimeraTK::numeric::detail Namespace Reference

Replacement for std::round() which also works constexpr and also casts to the target type in the same step. More...

Functions

template<Integral TO, std::floating_point FROM>
constexpr TO roundAndCast (FROM x)
 
template<Arithmetic T_LEFT, Arithmetic T_RIGHT>
constexpr bool greaterMaximum ()
 
template<Arithmetic T_LEFT, Arithmetic T_RIGHT>
constexpr bool lesserMinimum ()
 

Detailed Description

Replacement for std::round() which also works constexpr and also casts to the target type in the same step.

Function Documentation

◆ greaterMaximum()

template<Arithmetic T_LEFT, Arithmetic T_RIGHT>
constexpr bool ChimeraTK::numeric::detail::greaterMaximum ( )
constexpr

Definition at line 63 of file NumericConverter.h.

◆ lesserMinimum()

template<Arithmetic T_LEFT, Arithmetic T_RIGHT>
constexpr bool ChimeraTK::numeric::detail::lesserMinimum ( )
constexpr

Definition at line 90 of file NumericConverter.h.

◆ roundAndCast()

template<Integral TO, std::floating_point FROM>
constexpr TO ChimeraTK::numeric::detail::roundAndCast ( FROM  x)
constexpr

Definition at line 42 of file NumericConverter.h.