Dispatch Queue
Dispatch Queue / Thread Pool implementation for C++11 with built-in C++20 coroutine support
Loading...
Searching...
No Matches
function_result.hpp
1
#pragma once
2
3
#include <type_traits>
4
5
namespace
dispatch_queue {
6
7
namespace
detail {
8
9
#ifdef __cpp_lib_is_invocable
10
template
<
class
F,
class
... ArgTypes>
11
using
function_result =
typename
std::invoke_result<F, ArgTypes...>::type;
12
#else
13
template
<
class
F,
class
... ArgTypes>
14
using
function_result =
typename
std::result_of<F(ArgTypes...)>::type;
15
#endif
16
17
}
18
19
}
// end namespace dispatch_queue
include
function_result.hpp
Generated by
1.13.2