SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
argument_parser/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 <concepts>
13#include <string>
14#include <type_traits>
15
17
18namespace seqan3::detail
19{
20
39template <typename option_type>
40concept is_container_option =
41 !std::is_same_v<std::remove_cvref_t<option_type>, std::string>
42 && requires (option_type container, typename std::remove_reference_t<option_type>::value_type value) {
43 { container.push_back(value) };
44 };
46
47} // namespace seqan3::detail
The (most general) container concept as defined by the standard library.
Provides platform and dependency checks.
Hide me