sharg 1.0.0
THE argument parser for bio-c++ tools.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages Concepts
concept.hpp
Go to the documentation of this file.
1// --------------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, Knut Reinert & MPI für molekulare Genetik
4// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5// shipped with this file and also available at: https://github.com/seqan/sharg-parser/blob/main/LICENSE.md
6// --------------------------------------------------------------------------------------------------------
7
13#pragma once
14
15#include <string>
16
17#include <sharg/platform.hpp>
18
19namespace sharg::detail
20{
21
39// clang-format off
40template <typename option_type>
41concept is_container_option = (!std::is_same_v<std::remove_cvref_t<option_type>, std::string>) &&
42 requires (option_type container,
43 typename std::ranges::range_value_t<option_type> value)
44 {
45 { container.push_back(value) };
46 };
47// clang-format on
48
49} // namespace sharg::detail
Provides platform and dependency checks.