sharg 1.0.0
THE argument parser for bio-c++ tools.
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)
{
{is >> val} -> std::same_as<std::istream&>;
}
Concept for types that can be parsed from a std::istream via the stream operator.
Definition: concept.hpp:40

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.