PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::FiniteChecker< T > Struct Template Reference

Finite constrained value checker. More...

#include <Finite.hpp>

Public Types

using exception_type = std::invalid_argument
 Exception type possibly thrown by this checker.
 

Public Member Functions

constexpr auto operator() () noexcept(noexcept(static_cast< T >(0))) -> decltype(static_cast< T >(0))
 Valid value supplying functor.
 
constexpr auto operator() (const T &v) -> decltype(isfinite(v), T
 Value checking functor. More...
 

Detailed Description

template<typename T>
struct playrho::FiniteChecker< T >

Finite constrained value checker.

Member Function Documentation

◆ operator()()

template<typename T >
constexpr auto playrho::FiniteChecker< T >::operator() ( const T &  v) -> decltype(isfinite(v), T
inlineconstexpr

Value checking functor.

Exceptions
exception_typeif given value is not valid.

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