40 List<bool> duplicate(input.
size(),
false);
46 const wordRe& val = input[i];
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;
97 output[count] = std::move(val);
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void resize(const label len)
Adjust allocated size of list.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
label find(const T &val) const
Find index of the first occurrence of the value.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
A List of wordRe with additional matching capabilities.
void uniq()
Filter out duplicate entries (inplace).
#define forAll(list, i)
Loop across all elements in list.