STYLE: use labelUList instead of labelList for ListOps::identity

This commit is contained in:
Mark Olesen
2019-04-11 16:20:53 +02:00
committed by Andrew Heather
parent cf91655422
commit 40e4f8a293
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ void Foam::inplaceReorder
} }
void Foam::ListOps::identity(labelList& map, label start) void Foam::ListOps::identity(labelUList& map, label start)
{ {
std::iota(map.begin(), map.end(), start); std::iota(map.begin(), map.end(), start);
} }

View File

@ -586,7 +586,7 @@ struct greater
//- Set identity map with (map[i] == i) //- Set identity map with (map[i] == i)
// Optionally with an alternative start index, so that (map[i] == i+start) // Optionally with an alternative start index, so that (map[i] == i+start)
void identity(labelList& map, label start=0); void identity(labelUList& map, label start=0);
//- Find index of the first occurrence that satisfies the predicate. //- Find index of the first occurrence that satisfies the predicate.