Does C++ standard library and/or Boost have anything similar to the filter
function found in functional languages?
The closest function I could find was std::remove_copy_if
but it seems to be doing the opposite of what I want. Does boost::lambda
have any function to get a negated version of my predicate (similar to not
in Haskell)? I could negate my predicate and use it with std::remove_copy_if
then.
Please note that I am not asking how to write filter
function in C++; I am just asking whether standard library and/or Boost already provide such a function.
Thanks in advance.