template<typename... AliasedPolicies>
class arg_router::policy::alias_t< AliasedPolicies >
Allows the 'aliasing' of arguments, i.e. a single argument will set multiple others.
- Note
- An aliased argument cannot be routed, it's aliased arguments are set instead
- Template Parameters
-
AliasedPolicies | Pack of policies to alias |
Definition at line 22 of file alias.hpp.
template<typename... AliasedPolicies>
template<typename ProcessedTarget , typename... Parents>
Duplicates any value tokens as aliases of other nodes.
The token duplication mechanism has two approaches, depending on the owning node's fixed count:
- If the count is zero then it is flag-like so the aliased names are just appended to the processed part of tokens
- If the count is greater than zero then it is argument-like and the aliased names are appended to the processed part of tokens, each followed by count tokens (i.e. the values)
In either circumstance the original tokens are removed as they are for the alias, rather than the aliased.
- Template Parameters
-
ProcessedTarget | processed_target payload type |
Parents | Pack of parent tree nodes in ascending ancestry order |
- Parameters
-
tokens | Currently processed tokens |
processed_target | Previously processed parse_target of parent node, or empty is there is no non-root parent |
target | Pre-parse generated target |
parents | Parent node instances |
- Returns
- Either true if successful, or a multi_lang_exception if there too few value tokens
Definition at line 60 of file alias.hpp.