The std::search algorithm returns the first instance of a sub-sequence.
The C++17 variant supports both parallel execution and custom searchers. Custom searchers offer better average complexity (up to linear).
Click to open in Compiler Explorer.
Leave a comment