From c3454355ee04494e1ceed21cc54decb35a65bc4e Mon Sep 17 00:00:00 2001 From: Jake Hemstad Date: Wed, 23 Jun 2021 11:08:09 -0500 Subject: [PATCH] Only forward decl tuple_element/size in tuple.h. --- thrust/tuple.h | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/thrust/tuple.h b/thrust/tuple.h index 45df2be6e..37f5210ef 100644 --- a/thrust/tuple.h +++ b/thrust/tuple.h @@ -62,17 +62,7 @@ struct null_type; * \see pair * \see tuple */ -template - struct tuple_element -{ - private: - typedef typename T::tail_type Next; - - public: - /*! The result of this metafunction is returned in \c type. - */ - typedef typename tuple_element::type type; -}; // end tuple_element +template struct tuple_element; /*! This metafunction returns the number of elements * of a \p tuple type of interest. @@ -82,13 +72,8 @@ template * \see pair * \see tuple */ -template - struct tuple_size -{ - /*! The result of this metafunction is returned in \c value. - */ - static const int value = 1 + tuple_size::value; -}; // end tuple_size +template struct tuple_size; + // get function for non-const cons-lists, returns a reference to the element