mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: promote ListOps::identity to Foam::identity
- becoming more frequently used and there is no ambiguity in calling parameters either - identity(label) vs identity(labelUList&). Provide both int32 and int64 versions.
This commit is contained in:
@ -59,7 +59,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
{
|
||||
List<label> ident(25);
|
||||
std::iota(ident.begin(), ident.end(), 0);
|
||||
Foam::identity(ident, 0);
|
||||
|
||||
print(ident);
|
||||
|
||||
@ -108,7 +108,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// This is also possible since we hold a concrete pointer/size
|
||||
// and not an intermediate
|
||||
ListOps::identity(sub.reset(ident, 8, 8));
|
||||
Foam::identity(sub.reset(ident, 8, 8));
|
||||
print(sub);
|
||||
print(ident);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user