Go to the documentation of this file.
9 #ifndef EAGINE_VALID_IF_GE0_LT1_HPP
10 #define EAGINE_VALID_IF_GE0_LT1_HPP
23 return (T(0) <= value) && (value < T(1));
27 template <
typename X,
typename = disable_if_same_t<X, do_log>>
28 constexpr do_log(X&&) noexcept {}
30 template <
typename Log>
32 log <<
"Value " << v <<
", "
33 <<
"outside of interval [0,1) is invalid";
47 #endif // EAGINE_VALID_IF_GE0_LT1_HPP
constexpr auto operator()(T value) const noexcept
Indicates value validity, true if 0 <= value < 1.
Definition: ge0_lt1.hpp:22
Common code is placed in this namespace.
Definition: eagine.hpp:21
Primary template for conditionally valid values.
Definition: decl.hpp:49
Policy for values valid if greate or equal to zero, less than one.
Definition: ge0_lt1.hpp:19