boost::compute::search — Substring matching algorithm.
// In header: <boost/compute/algorithm/search.hpp> template<typename TextIterator, typename PatternIterator> TextIterator search(TextIterator t_first, TextIterator t_last, PatternIterator p_first, PatternIterator p_last, command_queue & queue = system::default_queue());
Searches for the first match of the pattern [p_first, p_last) in text [t_first, t_last).
Parameters: |
|
||||||||||
Returns: |
Iterator pointing to beginning of first occurence |