Sharg
1.1.2-rc.1
The argument parser for bio-c++ tools.
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
};
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:
sharg
detail
concept.hpp
Generated on Mon Dec 9 2024 14:18:11 for Sharg by
1.10.0