Go to the documentation of this file.
9 #ifndef EAGINE_VALID_IF_NOT_EMPTY_HPP
10 #define EAGINE_VALID_IF_NOT_EMPTY_HPP
22 constexpr
auto operator()(
const T& range)
const noexcept {
23 return !range.empty();
27 template <
typename X,
typename = disable_if_same_t<X, do_log>>
28 constexpr do_log(X&&) noexcept {}
30 template <
typename Log>
32 log <<
"Empty range, string or container is invalid";
46 #endif // EAGINE_VALID_IF_NOT_EMPTY_HPP
constexpr auto operator()(const T &range) const noexcept
Indicates value validity, true if !range.empty().
Definition: not_empty.hpp:22
Common code is placed in this namespace.
Definition: eagine.hpp:21
Policy class for containers valid if their empty() member function return false.
Definition: not_empty.hpp:19
Primary template for conditionally valid values.
Definition: decl.hpp:49