Right open unit-interval constrained value checker. More...
#include <playrho/detail/ZeroToUnderOneChecker.hpp>
Public Member Functions | |
constexpr auto | operator() () const noexcept -> decltype(static_cast< T >(0)) |
Default value supplying functor. More... | |
constexpr auto | operator() (const T &v) const noexcept -> decltype((v >=static_cast< T >(0)) &&(v< static_cast< T >(1)), static_cast< const char * >(nullptr)) |
Value checking functor. More... | |
Right open unit-interval constrained value checker.
Provides functors ensuring values are: greater-than or equal-to zero, and less-than one. By definition, this is called the right open unit interval [0, 1).
Checked
. T | Underlying type for this checker. |
|
inlineconstexprnoexcept |
Default value supplying functor.
|
inlineconstexprnoexcept |
Value checking functor.
nullptr
if the given value is within 0 and under 1, else a non-null pointer to the C-style nul-terminated string indicating whether the value is less than zero or not less than 1.