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>
33 
34 template <>
35 struct is_policy<no_result_value<>> : std::true_type {
36 };
37 } // namespace arg_router::policy
std::is_base_of< no_result_value<>, T > has_no_result_value
constexpr bool has_no_result_value_v