
13 Apr
2008
13 Apr
'08
10:45 a.m.
Jean-Pierre Bergamin schrieb:
Hello again
Steven Watanabe wrote:
Try using boost::function
for the predicate type. Thank you Steven. Using boost::function as the predicate type does the trick. For the sake of completeness, I post some code at the bottom. I think this is a very useful method to provide filtered values to a user, without copying any elements.
Copying is of course only avoided if the Predicate function is defined
as boost::function