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

Non-zero constrained value checker. More...

#include <NonZero.hpp>

Public Types

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

Public Member Functions

constexpr auto operator() (const T &v) -> decltype(!(v !=static_cast< T >(0)), T
 Value checking functor. More...
 

Detailed Description

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

Non-zero constrained value checker.

Member Function Documentation

◆ operator()()

template<typename T >
constexpr auto playrho::NonZeroChecker< T >::operator() ( const T &  v) -> decltype(!(v != static_cast<T>(0)), T
inlineconstexpr

Value checking functor.

Exceptions
exception_typeif given value is not valid.

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