Go to the documentation of this file.
9 #ifndef EAGINE_VALID_IF_NONNEGATIVE_HPP
10 #define EAGINE_VALID_IF_NONNEGATIVE_HPP
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 <<
", "
48 #endif // EAGINE_VALID_IF_NONNEGATIVE_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
constexpr auto operator()(T value) const noexcept
Indicates value validity, true if 0 <= value.
Definition: nonnegative.hpp:22
Primary template for conditionally valid values.
Definition: decl.hpp:49
Policy class for values valid when they are non-negative.
Definition: nonnegative.hpp:19