Non-zero constrained value checker.
More...
#include <playrho/detail/NonZeroChecker.hpp>
|
constexpr auto | operator() (const T &v) const noexcept -> decltype(!(v !=static_cast< T >(0)), static_cast< const char * >(nullptr)) |
| Value checking functor. More...
|
|
template<typename T>
struct playrho::detail::NonZeroChecker< T >
Non-zero 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()()
template<typename T >
constexpr auto playrho::detail::NonZeroChecker< 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 not equal to zero, else a non-null string explanation.
The documentation for this struct was generated from the following file: