composite_finder

Synopsis

Declared in <folly/algorithm/simd/find_first_of.h>

template<
    typename Vector,
    typename Scalar>
class composite_finder_first_of;

Description

A find‐first‐of finder which composes a vector finder with a scalar finder.

A vector finder requires a scalar finder for not‐implemented‐architecture and for near‐end‐of‐input. This combinator producers a finder which uses the vector finder where possible and otherwise falls back to the scalar finder.

Member Functions

Name

Description

composite_finder_first_of [constructor]

Constructs the finder from the alphabet to search for.

operator()

Returns the index of the first input character that matches the alphabet.

Created with MrDocs