Search for Ranges within Ranges
Need to acquire a sub-range from your existing range? std::search solves the problem efficiently.
std::search
searches for a range in another range from the beginning, std::find_end
from the end. std::search_n
searches for n consecutive elements in the range. ...