CPP-AP 3.0.1
Command-line argument parser for C++20
Loading...
Searching...
No Matches
concepts.hpp
Go to the documentation of this file.
1// Copyright (c) 2023-2025 Jakub MusiaƂ
2// This file is part of the CPP-AP project (https://github.com/SpectraL519/cpp-ap).
3// Licensed under the MIT License. See the LICENSE file in the project root for full license information.
4
10#pragma once
11
12#include "ap/action/types.hpp"
13
14#include <utility>
15#include <variant>
16
18
24template <typename AS>
27
33template <typename AS>
35
41template <typename AS>
42concept c_action_specifier = c_value_action_specifier<AS> or std::same_as<AS, action_type::on_flag>;
43
44} // namespace ap::action::util
Defies the action specifier types.
The concept is satisfied when AS is a valid action action specifier.
Definition concepts.hpp:42
The concept is satisfied when AS is a valid on-flag action action specifier.
Definition concepts.hpp:34
The concept is satisfied when AS is a valid value action action specifier.
Definition concepts.hpp:25
Validates that T is the same as one of the types defined by Types.
Definition concepts.hpp:76