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

Whether the option type is considered to be a container. More...

#include <sharg/detail/concept.hpp>

Concept definition

template<typename option_type>
requires (option_type container,
typename std::ranges::range_value_t<option_type> value)
{
{ container.push_back(value) };
}
Whether the option type is considered to be a container.
Definition detail/concept.hpp:38
T is_same_v

Detailed Description

Whether the option type is considered to be a container.

When adding options or positionial arguments, a distinction needs to be made between container and non-container option_types.

In general, all standard library containers except std::string can be considered containers.

In order to be considered a container, the option_type must:

  • not be std::string
  • define a member type value_type
  • provide a member function push_back(value_type)

This entity is not part of the SeqAn API. Do not rely on it in your applications.

Hide me