1 //===-- void_t type_traits --------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 #ifndef LLVM_LIBC_SRC___SUPPORT_CPP_TYPE_TRAITS_VOID_T_H 9 #define LLVM_LIBC_SRC___SUPPORT_CPP_TYPE_TRAITS_VOID_T_H 10 11 #include "src/__support/CPP/type_traits/type_identity.h" 12 #include "src/__support/macros/config.h" 13 14 namespace LIBC_NAMESPACE_DECL { 15 namespace cpp { 16 17 // void_t 18 19 namespace detail { 20 template <typename... Ts> struct make_void : cpp::type_identity<void> {}; 21 } // namespace detail 22 23 template <typename... Ts> 24 using void_t = typename detail::make_void<Ts...>::type; 25 26 } // namespace cpp 27 } // namespace LIBC_NAMESPACE_DECL 28 29 #endif // LLVM_LIBC_SRC___SUPPORT_CPP_TYPE_TRAITS_VOID_T_H 30