Negative integers in a List

If you wished to write a function to determine how many negative integers are in a list, without using any loops or recursion, which std function template would you employ?
std::count_if().
Last edited on
Topic archived. No new replies allowed.