diff --git a/libcxx/include/CMakeLists.txt b/libcxx/include/CMakeLists.txt --- a/libcxx/include/CMakeLists.txt +++ b/libcxx/include/CMakeLists.txt @@ -596,7 +596,6 @@ __thread/timed_backoff_policy.h __threading_support __tree - __tuple/apply_cv.h __tuple/make_tuple_types.h __tuple/pair_like.h __tuple/sfinae_helpers.h diff --git a/libcxx/include/__tuple/apply_cv.h b/libcxx/include/__tuple/apply_cv.h deleted file mode 100644 --- a/libcxx/include/__tuple/apply_cv.h +++ /dev/null @@ -1,70 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _LIBCPP___TUPLE_APPLY_CV_H -#define _LIBCPP___TUPLE_APPLY_CV_H - -#include <__config> -#include <__type_traits/is_const.h> -#include <__type_traits/is_reference.h> -#include <__type_traits/is_volatile.h> -#include <__type_traits/remove_reference.h> - -#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) -# pragma GCC system_header -#endif - -#ifndef _LIBCPP_CXX03_LANG - -_LIBCPP_BEGIN_NAMESPACE_STD - -template -struct __apply_cv_mf; -template <> -struct __apply_cv_mf { - template using __apply = _Tp; -}; -template <> -struct __apply_cv_mf { - template using __apply _LIBCPP_NODEBUG = const _Tp; -}; -template <> -struct __apply_cv_mf { - template using __apply _LIBCPP_NODEBUG = volatile _Tp; -}; -template <> -struct __apply_cv_mf { - template using __apply _LIBCPP_NODEBUG = const volatile _Tp; -}; -template <> -struct __apply_cv_mf { - template using __apply _LIBCPP_NODEBUG = _Tp&; -}; -template <> -struct __apply_cv_mf { - template using __apply _LIBCPP_NODEBUG = const _Tp&; -}; -template <> -struct __apply_cv_mf { - template using __apply _LIBCPP_NODEBUG = volatile _Tp&; -}; -template <> -struct __apply_cv_mf { - template using __apply _LIBCPP_NODEBUG = const volatile _Tp&; -}; -template > -using __apply_cv_t _LIBCPP_NODEBUG = __apply_cv_mf< - is_lvalue_reference<_Tp>::value, - is_const<_RawTp>::value, - is_volatile<_RawTp>::value>; - -_LIBCPP_END_NAMESPACE_STD - -#endif // _LIBCPP_CXX03_LANG - -#endif // _LIBCPP___TUPLE_APPLY_CV_H diff --git a/libcxx/include/__tuple/make_tuple_types.h b/libcxx/include/__tuple/make_tuple_types.h --- a/libcxx/include/__tuple/make_tuple_types.h +++ b/libcxx/include/__tuple/make_tuple_types.h @@ -12,11 +12,11 @@ #include <__config> #include <__fwd/array.h> #include <__fwd/tuple.h> -#include <__tuple/apply_cv.h> #include <__tuple/tuple_element.h> #include <__tuple/tuple_indices.h> #include <__tuple/tuple_size.h> #include <__tuple/tuple_types.h> +#include <__type_traits/apply_cv.h> #include <__type_traits/remove_cv.h> #include <__type_traits/remove_reference.h> #include @@ -40,20 +40,16 @@ template