arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/policy/validator.hpp>
Public Types | |
using | rules_type = std::tuple< Rules... > |
Static Public Member Functions | |
template<typename Root > | |
constexpr static void | validate () noexcept |
A policy that provides validation checking against a parse tree root.
The rules are checked in order, so where there is overlap (i.e. a policy or tree_node could be valid in multiple entries) be sure to list the more specific rule first.
Rules | A pack of rule types |
Definition at line 106 of file validator.hpp.
using arg_router::policy::validation::validator< Rules >::rules_type = std::tuple<Rules...> |
Validation rules.
Definition at line 110 of file validator.hpp.
|
inlinestaticconstexprnoexcept |
Trigger the validation.
A static_assert
will fail with a useful(ish) error message if validation fails.
Root | Root type to validate |
Definition at line 154 of file validator.hpp.