ENH: UIndirectList: added stl typedefs
This commit is contained in:
parent
773022d8aa
commit
c45659d848
1 changed files with 16 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue