rollbear / dry-comparisons

C++17 Utility classes for comparing multiple values in one simple expression
The Unlicense
204 stars 13 forks source link

Support comparisons between types #5

Open fgallegosalido opened 4 years ago

fgallegosalido commented 4 years ago

It would be really nice to have the ability to do something like this:

if (all_of{a, b, c} < any_of{100, 200}) {//...}

Obviusly, the same for the rest of the options the library provides. I don't reallty know how difficult it would be to implement it, but I find it a really nice feature.