boost::compute::search_n — Substring matching algorithm.
// In header: <boost/compute/algorithm/search_n.hpp> template<typename TextIterator, typename ValueType> TextIterator search_n(TextIterator t_first, TextIterator t_last, size_t n, ValueType value, command_queue & queue = system::default_queue());
Searches for the first occurence of n consecutive occurences of value in text [t_first, t_last).
Parameters: |
|
||||||||||
Returns: |
Iterator pointing to beginning of first occurence |