Write a find_if_first_of function that takes a range of elements and a tuple of predicates and returns an iterator and an optional<int> for the element and first predicate that is satisfied. This will eliminate the raw (remaining) loop inside is_proper_subset.
Write a
find_if_first_of
function that takes a range of elements and a tuple of predicates and returns an iterator and anoptional<int>
for the element and first predicate that is satisfied. This will eliminate the raw (remaining) loop insideis_proper_subset
.