P2302 proposes an find-based contains (called contains) and a
search-based contains (called contains_subrange). The former is used
to determine if an element exists in a range, while the latter is used
to determine whether or not a needle range is a subrange of a
haystack range.
P2302 proposes an
find
-based contains (calledcontains
) and asearch
-based contains (calledcontains_subrange
). The former is used to determine if an element exists in a range, while the latter is used to determine whether or not a needle range is a subrange of a haystack range.