Iros
 
Loading...
Searching...
No Matches
is_debug_env.h
Go to the documentation of this file.
1#pragma once
2
5#include "di/meta/constexpr.h"
6
7namespace di::execution {
8namespace is_debug_env_ns {
10 template<typename Env>
11 constexpr auto operator()(Env const& env) const {
14 "is_debug_env() customizations must return a di::Constexpr<bool> instance.");
15 return tag_invoke(*this, env);
16 } else {
17 return c_<false>;
18 }
19 }
20 };
21}
22
39constexpr inline auto is_debug_env = is_debug_env_ns::Function {};
40}
41
42namespace di::concepts {
48template<typename Env>
49concept DebugEnv = meta::InvokeResult<decltype(execution::is_debug_env), Env const&>::value;
50}
Checks if T is a Constexpr instance with value U.
Definition constexpr.h:279
Check the given environment is a debug environment.
Definition is_debug_env.h:49
Definition tag_invoke.h:33
Definition any_storable.h:9
Definition is_debug_env.h:8
Definition bulk.h:30
constexpr auto is_debug_env
Returns whether the given environment is a debug environment.
Definition is_debug_env.h:39
decltype(function::detail::invoke_impl(util::declval< Ts >()...)) InvokeResult
Definition invoke.h:64
constexpr tag_invoke_detail::TagInvokeFn tag_invoke
Definition tag_invoke.h:22
constexpr auto c_
A value of type Constexpr<val>.
Definition constexpr.h:252
Definition forwarding_query.h:8
Definition is_debug_env.h:9
constexpr auto operator()(Env const &env) const
Definition is_debug_env.h:11