What will the above code output if strVec is ...

Q

std::cout << count_if(
strVec.begin(),
strVec.end(),
bind2nd(greater(), "Baz")
);

What will the above code output if strVec is
a std::vector<std::string> and contains the strings "Foo", "Bar," "Baz", and "Bee"?

1 Unknown, those functions are non-standard.
2 2
3 "Bee"
4 "Baz"
5 4

✍: Guest

A
(This question has not been answered yet. If you know the answer, please share it in a comment below.)

2012-05-02, 3187👍, 0💬