Sharg
1.1.2-rc.1
The argument parser for bio-c++ tools.
Toggle main menu visibility
Main Page
Setup
Quick-Setup (CMake)
Library tests
Tutorial
Parsing command line arguments
How-To
Subcommand parsing
Make custom types compatible
Make custom validator
Cookbook
About
API/ABI stability
Changelog
Copyright
Code of Conduct
Contributing
Customisation
Update Notifications
API Reference
API Reference (details)
Concept List
Class List
Class List
Class Index
Class Hierarchy
Class Members
All
:
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Typedefs
Enumerations
Related Symbols
File List
File List
File Members
All
Macros
▼
Sharg
Welcome
►
Setup
►
Tutorial
►
How-To
Cookbook
►
About
►
API Reference
▼
API Reference (details)
►
Concept List
►
Class List
▼
File List
▼
File List
▼
sharg
▼
detail
concept.hpp
format_base.hpp
►
format_help.hpp
format_html.hpp
format_man.hpp
format_parse.hpp
►
format_tdl.hpp
safe_filesystem_entry.hpp
►
terminal.hpp
test_accessor.hpp
►
to_string.hpp
►
type_name_as_string.hpp
►
version_check.hpp
►
std
all.hpp
►
auxiliary.hpp
concept.hpp
config.hpp
►
enumeration_names.hpp
►
exceptions.hpp
parser.hpp
platform.hpp
►
validators.hpp
►
version.hpp
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
detail/concept.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2
// SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
3
// SPDX-License-Identifier: BSD-3-Clause
4
10
#pragma once
11
12
#include <
string
>
13
14
#include <
sharg/platform.hpp
>
15
16
namespace
sharg::detail
17
{
18
36
// clang-format off
37
template
<
typename
option_type>
38
concept
is_container_option
= (!
std::is_same_v<std::remove_cvref_t<option_type>
,
std::string
>) &&
39
requires
(option_type container,
40
typename
std::ranges::range_value_t<option_type> value)
41
{
42
{ container.push_back(value) };
43
};
38
concept
is_container_option
= (!
std::is_same_v<std::remove_cvref_t<option_type>
,
std::string
>) && {
…
}
44
// clang-format on
45
46
}
// namespace sharg::detail
std::string
sharg::detail::is_container_option
Whether the option type is considered to be a container.
Definition
detail/concept.hpp:38
std::is_same_v
T is_same_v
platform.hpp
Provides platform and dependency checks.
string
Hide me
Version:
main_user
main_dev
1.1.1
1.1.0
1.0.0
sharg
detail
concept.hpp
Generated on Sat Mar 8 2025 13:55:39 for Sharg by
1.10.0