From 3bd85a6098d7e93ee85022588b643e225636d5aa Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Tue, 24 Jun 2014 15:05:43 +0100
Subject: [PATCH] ENH: UIndirectList: added stl typedefs

---
 .../Lists/UIndirectList/UIndirectList.H         | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/src/OpenFOAM/containers/Lists/UIndirectList/UIndirectList.H b/src/OpenFOAM/containers/Lists/UIndirectList/UIndirectList.H
index 56121a22ef6..4409dac8c05 100644
--- a/src/OpenFOAM/containers/Lists/UIndirectList/UIndirectList.H
+++ b/src/OpenFOAM/containers/Lists/UIndirectList/UIndirectList.H
@@ -2,7 +2,7 @@
   =========                 |
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
-    \\  /    A nd           | Copyright (C) 2011-2012 OpenFOAM Foundation
+    \\  /    A nd           | Copyright (C) 2011-2014 OpenFOAM Foundation
      \\/     M anipulation  |
 -------------------------------------------------------------------------------
 License
@@ -128,6 +128,21 @@ public:
         //- Type of values the UList contains.
         typedef T value_type;
 
+        //- Type that can be used for storing into
+        //  UList::value_type objects.
+        typedef T& reference;
+
+        //- Type that can be used for storing into
+        //  constant UList::value_type objects
+        typedef const T& const_reference;
+
+        //- The type that can represent the difference between any two
+        //  UList iterator objects.
+        typedef label difference_type;
+
+        //- The type that can represent the size of a UList.
+        typedef label size_type;
+
 
     // Ostream operator
 
-- 
GitLab