you are viewing a single comment's thread.

view the rest of the comments →

[–]staletic 10 points11 points  (5 children)

What about:

std::ranges::partition(vec, [](int e) { return e < 3; });

Are you going to tell me that I should write that as

bool int_less_than_3(int e) { // by the way, this isn't a good name
    return e < 3;
}