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

Concept for types that can be parsed from a std::istream via the stream operator. More...

#include <sharg/concept.hpp>

Concept definition

template<typename value_type>
concept sharg::istreamable = requires (std::istream & is, value_type & val)
{
}
Concept for types that can be parsed from a std::istream via the stream operator.
Definition concept.hpp:37
T is_same_v

Detailed Description

Concept for types that can be parsed from a std::istream via the stream operator.

Template Parameters
value_typeThe type to check whether it's stremable via std::istream.

Read up on how to make a type model this concept here:

How to make your custom type model sharg::parsable.

Requirements

std::istream must support the (un)formatted input function (operator>>) for an l-value of a given value_type.

This entity is stable. Since version 1.0.

Hide me