Checks whether the the type can be used in an add_(positional_)option call on the parser.
More...
#include <sharg/concept.hpp>
template<typename option_type>
Concept for types that can be parsed from a std::istream via the stream operator.
Definition: concept.hpp:40
Checks whether the free function sharg::enumeration_names can be called on the type.
Definition: enumeration_names.hpp:238
Concept for types that can be parsed into a std::ostream via the stream operator.
Definition: concept.hpp:64
Checks whether the the type can be used in an add_(positional_)option call on the parser.
Definition: concept.hpp:94
Checks whether the the type can be used in an add_(positional_)option call on the parser.
- Template Parameters
-
option_type | The type to check. |
Read up on how to make a type model this concept here:
How to make your custom type model sharg::parsable.
Requirements
In order to model this concept, the type must either model sharg::istreamable and sharg::ostreamable or model sharg::named_enumeration<option_type>.
This entity is stable. Since version 1.0.