Go to the documentation of this file.
    9 #ifndef EAGINE_VALID_IF_LT_SIZE_HPP 
   10 #define EAGINE_VALID_IF_LT_SIZE_HPP 
   18 template <
typename T, 
typename C>
 
   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 T& v, 
const C& c)
 const {
 
   32             log << 
"Value " << v << 
", " 
   33                 << 
"not less than c.size() = " << c.size() << 
" is invalid";
 
   44 template <
typename C, 
typename T>
 
   49 #endif // EAGINE_VALID_IF_LT_SIZE_HPP 
  
Common code is placed in this namespace.
Definition: eagine.hpp:21
Policy class for values valid if less than container.size().
Definition: lt_size.hpp:19
Basic template for conditionally-valid values.
Definition: base.hpp:86
auto operator()(T x, const C &c) const
Indicates value validity, true x < c.size().
Definition: lt_size.hpp:22