Non-negative constrained value checker.
More...
#include <playrho/detail/NonNegativeChecker.hpp>
|
constexpr auto | operator() () const noexcept -> decltype(T{}) |
| Default value supplying functor. More...
|
|
constexpr auto | operator() (const T &v) const noexcept -> decltype(v >=T{}, static_cast< const char * >(nullptr)) |
| Value checking functor. More...
|
|
template<typename T>
struct playrho::detail::NonNegativeChecker< T >
Non-negative constrained value checker.
- Note
- This is meant to be used as a checker with types like
Checked
.
- Template Parameters
-
T | Underlying type for this checker. |
- See also
- Checked.
◆ operator()() [1/2]
Default value supplying functor.
- Returns
- Always returns the zero initialized value of the underlying type.
◆ operator()() [2/2]
Value checking functor.
- Returns
- Null string if given value is greater than or equal to zero, else a non-null string explanation.
The documentation for this struct was generated from the following file: