Find the first occurrence of any element of needles in haystack, using a custom comparator.
Synopsis
Declared in <folly/Range.h>
template<
class Iter,
class Comp>
size_t
qfind_first_of(
Range<Iter> const& haystack,
Range<Iter> const& needles,
Comp eq);
Return Value
The offset of the first match, or npos if not found.
Parameters
Name |
Description |
haystack |
The range to search within. |
needles |
The set of elements to search for. |
eq |
The equality comparison used to match elements. |
Created with MrDocs