mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: make op names unambiguous
* lessEqOp -> lessEqualOp * greaterEqOp -> greaterEqualOp to avoid ambiguitity with other forms such as 'plusEqOp' where the 'Eq' implies an assigment. The name change also aligns better with C++ <functional> names such as std::less_equal, std::greater_equal ENH: simple labelRange predicates gt0/ge0/lt0/le0 - mirrors scalarRange tests. Lower overhead than using labelMinMax::ge(0) etc since it does not create an intermediate (is stateless) and can be used as a constexpr
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2018 OpenCFD Ltd.
|
||||
Copyright (C) 2018-2022 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -184,7 +184,7 @@ int main(int argc, char *argv[])
|
||||
testPredicate(values, greaterOp1<scalar>(100));
|
||||
|
||||
// Also with dissimilar type
|
||||
testPredicate(values, lessEqOp1<label>(0));
|
||||
testPredicate(values, lessEqualOp1<label>(0));
|
||||
}
|
||||
|
||||
Info<< "\nEnd\n" << endl;
|
||||
|
||||
Reference in New Issue
Block a user