From 5a8645a7f9209a5a461e0c91b4c494f02216e105 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 3 Jun 2004 22:38:40 +0000 Subject: [PATCH] Don't declare the same typedef twice. git-svn-id: https://svn.dealii.org/trunk@9380 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/block_vector_base.h | 27 ++++++++++----------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/deal.II/lac/include/lac/block_vector_base.h b/deal.II/lac/include/lac/block_vector_base.h index 570ca3c392..36e1921575 100644 --- a/deal.II/lac/include/lac/block_vector_base.h +++ b/deal.II/lac/include/lac/block_vector_base.h @@ -230,6 +230,19 @@ namespace internal typedef Iterator InverseConstnessIterator; public: + /** + * Type of the number this + * iterator points + * to. Depending on the value + * of the second template + * parameter, this is either a + * constant or non-const + * number. + */ + typedef + typename Types::value_type + value_type; + /** * Declare some typedefs which * are standard for iterators @@ -239,7 +252,6 @@ namespace internal * they work on. */ typedef std::random_access_iterator_tag iterator_type; - typedef typename Types::value_type value_type; typedef ptrdiff_t difference_type; typedef typename BlockVectorType::reference reference; typedef value_type *pointer; @@ -259,19 +271,6 @@ namespace internal typename Types::BlockVector BlockVector; - /** - * Type of the number this - * iterator points - * to. Depending on the value - * of the second template - * parameter, this is either a - * constant or non-const - * number. - */ - typedef - typename Types::value_type - value_type; - /** * Construct an iterator from * a vector to which we point -- 2.39.5