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:
Mark Olesen
2023-10-26 10:42:23 +02:00
parent ef92d31493
commit d9f0587416
20 changed files with 86 additions and 86 deletions

View File

@ -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);
}