|
-
May 26th, 2011, 05:19 PM
#8
Re: predicate function
 Originally Posted by Eri523
Lindley, under which circumstances does remove_if() take a binary predicate?
...
BTW, how does your first example work at all, as I don't see an operator() in there anywhere? Is there a third way to define predicates I don't know of yet?
You're right, I goofed on the operator. And remove_if is not a good example of this predicate (perhaps std::sort would be better).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|