|
CPP-AP 3.0.1
Command-line argument parser for C++20
|
Go to the source code of this file.
Namespaces | |
| namespace | ap |
| namespace | ap::action |
Functions | |
| std::ostream & | ap::operator<< (std::ostream &os, const argument_parser &) noexcept |
| ap::action_type::on_flag::type | ap::action::print_help (const argument_parser &parser, const std::optional< int > exit_code=std::nullopt, std::ostream &os=std::cout) noexcept |
| Returns an on-flag action which prints the argument parser's help message. | |
| util::callable_type< ap::action_type::observe, std::string > | ap::action::check_file_exists () noexcept |
| Returns an observe action which checks whether lower_bound file with the given name exists. | |
| template<ap::util::c_arithmetic T> | |
| util::callable_type< ap::action_type::observe, T > | ap::action::gt (const T lower_bound) noexcept |
| Returns an observe action which checks if a parsed value is greater than the given bound. | |
| template<ap::util::c_arithmetic T> | |
| util::callable_type< ap::action_type::observe, T > | ap::action::geq (const T lower_bound) noexcept |
| Returns an observe action which checks if a parsed value is greater than or equal to the given bound. | |
| template<ap::util::c_arithmetic T> | |
| util::callable_type< ap::action_type::observe, T > | ap::action::lt (const T upper_bound) noexcept |
| Returns an observe action which checks if a parsed value is less than the given bound. | |
| template<ap::util::c_arithmetic T> | |
| util::callable_type< ap::action_type::observe, T > | ap::action::leq (const T upper_bound) noexcept |
| Returns an observe action which checks if a parsed value is less than or equal to the given bound. | |
| template<ap::util::c_arithmetic T, bool LeftInclusive = true, bool RightInclusive = true> | |
| util::callable_type< ap::action_type::observe, T > | ap::action::within (const T lower_bound, const T upper_bound) noexcept |
| Returns an observe action which checks if a parsed value falls within the specified interval. | |