Go to the documentation of this file.
9 #ifndef EAGINE_VALID_IF_SIZE_GT_HPP
10 #define EAGINE_VALID_IF_SIZE_GT_HPP
18 template <
typename C,
typename T>
27 template <
typename X,
typename = disable_if_same_t<X, do_log>>
28 constexpr do_log(X&&) noexcept {}
30 template <
typename Log>
31 void operator()(Log& log,
const C& c,
const T& s)
const {
32 log <<
"Size " << c.size() <<
", "
33 <<
"not greater than value " << s <<
" is invalid";
41 template <
typename C,
typename T>
46 #endif // EAGINE_VALID_IF_SIZE_GT_HPP
Policy class for containers valid if their size is larger than specified number.
Definition: size_gt.hpp:19
Common code is placed in this namespace.
Definition: eagine.hpp:21
auto operator()(const C &c, T s) const
Indicates value validity, true if c.size() > s.
Definition: size_gt.hpp:22
Basic template for conditionally-valid values.
Definition: base.hpp:86