Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Changes
Page history
Add \since tags into patterns
authored
Dec 20, 2019
by
Mark OLESEN
- may need to decide on a different tag in the future...
Show whitespace changes
Inline
Side-by-side
coding/patterns/HashTable.md
View page @
c38f61e9
<!-- --- title: OpenFOAM C++ Coding Patterns (HashTable) -->
<!-- --- title: OpenFOAM C++ Coding Patterns (HashTable) -->
[
Back to _coding patterns_
](
/coding/patterns/patterns
)
[
Back to _coding patterns_
](
/coding/patterns/patterns
)
***We are happy to incorporate content from volunteers!!***
***We are happy to incorporate content from volunteers!!***
...
@@ -8,6 +9,8 @@
...
@@ -8,6 +9,8 @@
### HashSet
### HashSet
\s
ince 1706
Use range-for to dereference the HashSet iterators directly:
Use range-for to dereference the HashSet iterators directly:
```
```
labelHashSet ids ...;
labelHashSet ids ...;
...
@@ -36,6 +39,8 @@ forAllConstIter(labelHashSet, ids, iter)
...
@@ -36,6 +39,8 @@ forAllConstIter(labelHashSet, ids, iter)
### HashTable, Map
### HashTable, Map
\s
ince 1706
Use
`lookup()`
to provide default values (const-access) and the
`operator()`
Use
`lookup()`
to provide default values (const-access) and the
`operator()`
to create new zero-initialized entries if required:
to create new zero-initialized entries if required:
```
```
...
...