userver
C++ Async Framework (beta)
Loading...
Searching...
No Matches
userver
utils
void_t.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <type_traits>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
utils
{
11
12
#if (__cpp_lib_void_t >= 201411 && !defined(__clang__)) || defined(DOXYGEN)
14
template
<
typename
... T>
15
using
void_t
= std::void_t<T...>;
16
#else
17
18
template
<
typename
... T>
19
struct
make_void_t {
20
using
type = void;
21
};
22
template
<
typename
... T>
23
using
void_t
=
typename
make_void_t<T...>::type;
24
25
#endif
26
27
}
// namespace utils
28
29
USERVER_NAMESPACE_END
Generated on Tue Mar 14 2023 16:21:27 for userver by
Doxygen
1.9.6