
Rob Stewart wrote:
From: David Abrahams <dave@boost-consulting.com>
Rob Stewart <stewart@sig.com> writes:
From: David Abrahams <dave@boost-consulting.com>
Rob Stewart <stewart@sig.com> writes:
From: David Abrahams <dave@boost-consulting.com>
Rob Stewart <stewart@sig.com> writes:
> all_of(a)(frobnicates, any_of(b)) > > > I started there, but the placement of parens seems to arbitrary and unbalanced. Also, the whole point of infix is to get rid of those.
So you think this is better?
>> all_of(a)._,frobnicates, any_of(b) >> >> Yes, but not as nice visually as
all_of(a)._ <frobnicates> any_of(b)
I updated my library to support user-supplied predicates.
I compiled my tests with your implementation ( I removed all tests with not_all_of and one_of, n_of, n_m_of ). The compilation time is longer with your implementation as with my 9th version. The generated binaries with your version are a little bigger but the execution time of the tests (10 calls with time-command) are 10% faster. Your implementation passes all my test. Sincerly Florian