mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: allow use of FixedList<label,N> for bitSet construct/set/unset
- allows direct 'hashing' of fixed lists. Eg, triFace
This commit is contained in:
@ -73,6 +73,20 @@ int main(int argc, char *argv[])
|
||||
bitSet set2(100, { -1, 10, 25, 45});
|
||||
Info<<"bitSet(label, labels): "; report(set2, true);
|
||||
|
||||
{
|
||||
FixedList<label, 4> locs({ -1, 3, 4, 12});
|
||||
|
||||
bitSet set3a(20, locs);
|
||||
Info<<"bitSet(FixedList<label>): "; report(set3a, true);
|
||||
|
||||
bitSet set3b(locs);
|
||||
Info<<"bitSet(FixedList<label>): "; report(set3b, true);
|
||||
|
||||
set3b.unset(FixedList<label, 3>({ 1, 2, 3}));
|
||||
|
||||
Info<<"bitSet unset(FixedList<label>): "; report(set3b, true);
|
||||
}
|
||||
|
||||
Info<< "End\n" << endl;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user