arg_router
1.4.0
C++ command line argument parsing and routing
|
A simple wrapper struct over non-parent data used by the node's pre_parse(..)
method.
As each tree_node derived type must reimplement the pre_parse(..)
method to at least add a reference to themselves, then overloads cause a lot of extra boilerplate. By wrapping the arg variations for each of those overloads into another type (this one), the user will only need to change a single overload with any variation of compile-time switchable.
There are two specialisations of pre_parse_data, one that carries a parse_target reference and one that doesn't. The difference is invisible at construction, but changes how it is used:
Validator | Validation checker type, see specialisation documentation for more info |
Definition at line 90 of file pre_parse_data.hpp.