|
Boost : |
From: Andy Little (andy_at_[hidden])
Date: 2005-08-05 14:23:53
"David Abrahams" <dave_at_[hidden]> wrote
> Rob Stewart <stewart_at_[hidden]> writes:
>>> all_of(a)._(frobnicates, any_of(b))
>>>
>>> all_of(a)._,frobnicates, any_of(b)
>>>
>>> all_of(a)._ %frobnicates% any_of(b)
>>>
>>> all_of(a)._ |frobnicates| any_of(b)
>>>
>>> all_of(a)._ <frobnicates> any_of(b)
>> all_of(a)(frobnicates, any_of(b))
Yuck and Yuck FWIW. AFAIK only prefix user defined operations work in C++.
if ( frobnicates(all_of(a), any_of(b))) {
frazzle(a);
}else{
frazzle(b);
}
At least until user defined operators are allowed:
frazzle a if all_of a frobnicates any_of b
else frazzle b;
But till then keep it simple please !
regards
Andy Little
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk