JayBeams  0.1
Another project to have fun coding.
noop_validator.hpp
Go to the documentation of this file.
1 #ifndef jb_itch5_noop_validator_hpp
2 #define jb_itch5_noop_validator_hpp
3 
4 namespace jb {
5 namespace itch5 {
6 
7 /**
8  * A validator functor that accepts all values.
9  *
10  * @tparam T the type of object to validate.
11  */
12 template <typename T>
14  /**
15  * Validate the object.
16  *
17  * @returns Always true.
18  */
19  inline bool operator()(T const&) const {
20  return true;
21  }
22 };
23 
24 } // namespace itch5
25 } // namespace jb
26 
27 #endif // jb_itch5_noop_validator_hpp
bool operator()(T const &) const
Validate the object.
A validator functor that accepts all values.
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7