
From: Darren Cook <darren@dcook.org>
Florian wrote:
Hmm.. << >> would be look ok for me, because multivalues donŽt provide arithmetic operations and they can't be misunderstood in this context. But at all, I donŽt like this misuse of operator overloads, ...
I feel the same; none of the proposals are good, and user-defined predicates are probably rare enough that the below compare() idea is fine.
I uploaded a new version of multivalues.zip that includes a test() function. I thought "test" sounded better than "compare" for general predicate tests: if (test(all_of(a), pred(), any_of(b)))... vs. if (compare(all_of(a), pred(), any_of(b)))... Let me know which you prefer or if you have a better idea. The ^ operator is still supported until there is some consensus on another operator or on supporting no operator. Another option is to provide support for several operators so one can choose whichever one likes best. -- Rob Stewart stewart@sig.com Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;