search_n « STL Algorithms Non modifying sequence operations « C++






1.Use search_n to find four consecutive elements with value 3
2.Use search_n with custom function to find four consecutive elements with value greater than 3