Sharg 1.1.2-rc.1
The argument parser for bio-c++ tools.
Loading...
Searching...
No Matches
sharg::detail::default_validator Struct Reference

Validator that always returns true. More...

#include <sharg/validators.hpp>

+ Inheritance diagram for sharg::detail::default_validator:

Public Types

using option_value_type = std::any
 Dummy type needed to model sharg::validator but any type is accepted in the operator().
 

Public Member Functions

template<typename option_value_t >
void operator() (option_value_t const &) const noexcept
 Value cmp always passes validation for any type and never throws.
 
std::string get_help_page_message () const
 Since no validation is happening the help message is empty.
 

Detailed Description

Validator that always returns true.

The default validator is needed to make the validator parameter of parser::add_option and parser::add_option optional.

Remarks
For a complete overview, take a look at Parser

The documentation for this struct was generated from the following file:
Hide me