arg_router
1.4.0
C++ command line argument parsing and routing
no_result_value.hpp
1
// Copyright (C) 2022 by Camden Mannett.
2
// Distributed under the Boost Software License, Version 1.0.
3
// (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5
#pragma once
6
7
#include "arg_router/policy/policy.hpp"
8
9
namespace
arg_router::policy
10
{
16
template
<
typename
=
void
>
// This is needed due so it can be used in
17
struct
no_result_value
{
// template template parameters
18
};
19
24
template
<
typename
T>
25
using
has_no_result_value
= std::is_base_of<no_result_value<>, T>;
26
31
template
<
typename
T>
32
constexpr
bool
has_no_result_value_v
=
has_no_result_value<T>::value
;
33
34
template
<>
35
struct
is_policy
<
no_result_value
<>> : std::true_type {
36
};
37
}
// namespace arg_router::policy
arg_router::policy
Definition:
alias.hpp:15
arg_router::policy::has_no_result_value
std::is_base_of< no_result_value<>, T > has_no_result_value
Definition:
no_result_value.hpp:25
arg_router::policy::has_no_result_value_v
constexpr bool has_no_result_value_v
Definition:
no_result_value.hpp:32
arg_router::policy::is_policy
Definition:
policy.hpp:30
arg_router::policy::no_result_value
Definition:
no_result_value.hpp:17
arg_router
policy
no_result_value.hpp
Generated by
1.9.1