CPP-AP 2.2.6
Command-line argument parser for C++20
|
Defines the base argument class and common utility. More...
#include "argument_descriptor.hpp"
#include "argument_name.hpp"
#include <any>
#include <iostream>
#include <vector>
Go to the source code of this file.
Classes | |
class | ap::detail::argument_base |
Argument class interface. More... | |
Functions | |
template<c_argument_value_type T> | |
bool | ap::detail::is_valid_choice (const T &value, const std::vector< T > &choices) noexcept |
Checks if the provided choice is valid for the given set of choices. | |
Defines the base argument class and common utility.
Definition in file argument_base.hpp.
|
noexcept |
Checks if the provided choice is valid for the given set of choices.
value | A value, the validity of which is to be checked. |
choices | The set against which the choice validity will be checked. |
true
if the choice is valid, false
otherwise. Definition at line 104 of file argument_base.hpp.