mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use labelUList instead of labelList for ListOps::identity
This commit is contained in:
committed by
Andrew Heather
parent
cf91655422
commit
40e4f8a293
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user