]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add standard container typedefs.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 16 May 2000 10:59:09 +0000 (10:59 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 16 May 2000 10:59:09 +0000 (10:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@2867 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_vector.h

index 0e8ac00a1c909d4fa9d599a7a9574b113cf827c7..a944da43805520650c739e6209e4eee49dd03e14 100644 (file)
@@ -49,6 +49,25 @@ template <int n_blocks, typename Number>
 class BlockVector
 {
   public:
+                                    /**
+                                     * Declare standard types used in
+                                     * all containers. These types
+                                     * parallel those in the #C++#
+                                     * standard libraries
+                                     * #vector<...># class. The
+                                     * #iterator# types are not
+                                     * declared at present, since
+                                     * there are no iterators
+                                     * implemented that cycle through
+                                     * the individual sub-vectors.
+                                     */
+    typedef Number value_type;
+    typedef value_type* pointer;
+    typedef const value_type* const_pointer;
+    typedef value_type& reference;
+    typedef const value_type& const_reference;
+    typedef size_t size_type;
+
                                     /**
                                      *  Dummy-Constructor. Dimension=0
                                      */

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.