rhalbersma / bit_set

Rebooting the std::bitset franchise
Boost Software License 1.0
40 stars 5 forks source link

Simplify is_proper_subset #22

Open rhalbersma opened 6 months ago

rhalbersma commented 6 months ago

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.