Peter Dimov wrote:
Another option is to double-buffer the hash function and the predicate.
I think I'll go for this. It's a pity to require the extra expense, but
it'll only really be noticeable if you have a complicated function object.
thanks,
Daniel