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