From 04ce34697c1cbb19ca6c984edb64c67bf9d73c0c Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Thu, 23 Jan 2025 16:35:14 +0100 Subject: [PATCH] Drop thrust::null_type --- thrust/testing/tuple.cu | 100 -------------------------- thrust/thrust/tuple.h | 151 ---------------------------------------- 2 files changed, 251 deletions(-) diff --git a/thrust/testing/tuple.cu b/thrust/testing/tuple.cu index cccffec0081..5ac40a58fcd 100644 --- a/thrust/testing/tuple.cu +++ b/thrust/testing/tuple.cu @@ -527,103 +527,3 @@ void TestTupleCTAD(void) } DECLARE_UNITTEST(TestTupleCTAD); #endif // _CCCL_STD_VER >= 2017 - -// Ensure that we are backwards compatible with the old thrust::tuple implementation -_CCCL_SUPPRESS_DEPRECATED_PUSH -static_assert( - thrust::tuple_size>::value - == 0, - ""); -static_assert( - thrust::tuple_size>::value - == 1, - ""); -static_assert( - thrust::tuple_size>::value - == 2, - ""); -static_assert( - thrust::tuple_size>::value - == 3, - ""); -static_assert( - thrust::tuple_size>::value - == 4, - ""); -static_assert( - thrust::tuple_size>::value - == 5, - ""); -static_assert( - thrust::tuple_size< - thrust:: - tuple>::value - == 6, - ""); -static_assert( - thrust::tuple_size< - thrust::tuple>::value - == 7, - ""); -static_assert( - thrust::tuple_size>::value - == 8, - ""); -static_assert( - thrust::tuple_size>::value == 9, ""); -static_assert(thrust::tuple_size>::value == 10, ""); -_CCCL_SUPPRESS_DEPRECATED_POP diff --git a/thrust/thrust/tuple.h b/thrust/thrust/tuple.h index ff57db3fd97..e32034e9225 100644 --- a/thrust/thrust/tuple.h +++ b/thrust/thrust/tuple.h @@ -43,44 +43,6 @@ THRUST_NAMESPACE_BEGIN -// define null_type for backwards compatibility -struct CCCL_DEPRECATED_BECAUSE("Please remove null_type from parameters to tuple<...>") null_type -{}; - -_CCCL_SUPPRESS_DEPRECATED_PUSH - -_CCCL_HOST_DEVICE inline bool operator==(const null_type&, const null_type&) -{ - return true; -} - -_CCCL_HOST_DEVICE inline bool operator>=(const null_type&, const null_type&) -{ - return true; -} - -_CCCL_HOST_DEVICE inline bool operator<=(const null_type&, const null_type&) -{ - return true; -} - -_CCCL_HOST_DEVICE inline bool operator!=(const null_type&, const null_type&) -{ - return false; -} - -_CCCL_HOST_DEVICE inline bool operator<(const null_type&, const null_type&) -{ - return false; -} - -_CCCL_HOST_DEVICE inline bool operator>(const null_type&, const null_type&) -{ - return false; -} - -_CCCL_SUPPRESS_DEPRECATED_POP - /*! \addtogroup utility * \{ */ @@ -178,116 +140,3 @@ using _CUDA_VSTD::tie; */ THRUST_NAMESPACE_END - -_LIBCUDACXX_BEGIN_NAMESPACE_STD -_CCCL_SUPPRESS_DEPRECATED_PUSH - -template <> -struct tuple_size> : tuple_size> -{}; - -template -struct tuple_size> : tuple_size> -{}; - -template -struct tuple_size> : tuple_size> -{}; - -template -struct tuple_size> : tuple_size> -{}; - -template -struct tuple_size> : tuple_size> -{}; - -template -struct tuple_size> : tuple_size> -{}; - -template -struct tuple_size> : tuple_size> -{}; - -template -struct tuple_size< - tuple> - : tuple_size> -{}; - -template -struct tuple_size> - : tuple_size> -{}; - -template -struct tuple_size> - : tuple_size> -{}; - -_CCCL_SUPPRESS_DEPRECATED_POP -_LIBCUDACXX_END_NAMESPACE_STD