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