mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: HashSet::test() for method name compatibility with bitSet, boolList
This commit is contained in:
committed by
Andrew Heather
parent
95a33c2f68
commit
e143a5eaa5
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2016-2018 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
@ -168,6 +168,14 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
//- Same as found() - return true if key exists in the set.
|
||||
// Method name compatibility with bitSet and boolList.
|
||||
bool test(const Key& key) const
|
||||
{
|
||||
return found(key);
|
||||
}
|
||||
|
||||
|
||||
// Edit
|
||||
|
||||
//- Insert a new entry, not overwriting existing entries.
|
||||
|
||||
Reference in New Issue
Block a user