PlayRho  2.0.0
An interactive physics engine & library.
playrho::detail::NegativeChecker< T > Struct Template Reference

Negative constrained value checker. More...

#include <playrho/detail/NegativeChecker.hpp>

Public Member Functions

constexpr auto operator() (const T &v) const noexcept -> decltype(v< static_cast< T >(0), static_cast< const char * >(nullptr))
 Value checking functor. More...
 

Detailed Description

template<typename T>
struct playrho::detail::NegativeChecker< T >

Negative constrained value checker.

Note
This is meant to be used as a checker with types like Checked.
Template Parameters
TUnderlying type for this checker.
See also
Checked.

Member Function Documentation

◆ operator()()

template<typename T >
constexpr auto playrho::detail::NegativeChecker< T >::operator() ( const T &  v) const -> decltype(v < static_cast<T>(0), static_cast<const char*>(nullptr))
inlineconstexprnoexcept

Value checking functor.

Returns
Null string if given value is less than zero, else a non-null string explanation.

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