48 const label next =
input.find(val, i+1);
52 duplicate[next] =
true;
88 const label next =
input.find(val, i+1);
92 duplicate[next] =
true;
#define forAll(list, i)
Loop across all elements in list.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
static Istream & input(Istream &is, IntRange< T > &range)
A List of wordRe with additional matching capabilities.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static Ostream & output(Ostream &os, const IntRange< T > &range)
void uniq()
Filter out duplicate entries (inplace).