28 template<
class Matcher,
class StringType>
31 const Matcher& matcher,
41 if (matcher.match(lst[elemI]) ? !invert :
invert)
43 indices[nElem++] = elemI;
46 indices.setSize(nElem);
52 template<
class Matcher,
class StringListType>
55 const Matcher& matcher,
56 const StringListType& lst,
60 StringListType newLst(lst.size());
65 if (matcher.match(lst[elemI]) ? !invert :
invert)
67 newLst[nElem++] = lst[elemI];
70 newLst.setSize(nElem);
76 template<
class Matcher,
class StringListType>
79 const Matcher& matcher,
87 if (matcher.match(lst[elemI]) ? !invert :
invert)
89 lst[nElem++] = lst[elemI];