ENH: UIndirectList: added stl typedefs

This commit is contained in:
mattijs 2014-06-24 15:05:43 +01:00
parent 773022d8aa
commit c45659d848

View file

@ -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