1 //===-- type_identity 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_TYPE_IDENTITY_H 9 #define LLVM_LIBC_SRC___SUPPORT_CPP_TYPE_TRAITS_TYPE_IDENTITY_H 10 11 #include "src/__support/macros/config.h" 12 13 namespace LIBC_NAMESPACE_DECL { 14 namespace cpp { 15 16 // type_identity 17 template <typename T> struct type_identity { 18 using type = T; 19 }; 20 21 } // namespace cpp 22 } // namespace LIBC_NAMESPACE_DECL 23 24 #endif // LLVM_LIBC_SRC___SUPPORT_CPP_TYPE_TRAITS_TYPE_IDENTITY_H 25