sharg 1.0.0
THE argument parser for bio-c++ tools.
sharg::parsable Concept Reference

Checks whether the the type can be used in an add_(positional_)option call on the parser. More...

#include <sharg/concept.hpp>

Concept definition

template<typename option_type>
concept sharg::parsable =
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

Detailed Description

Checks whether the the type can be used in an add_(positional_)option call on the parser.

Template Parameters
option_typeThe 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>.

Remarks
For a complete overview, take a look at Parser

This entity is stable. Since version 1.0.