Boost logo

Boost :

Subject: Re: [boost] [mpl] multiset
From: pfultz2 (pfultz2_at_[hidden])
Date: 2015-03-12 16:47:27

> I never need to use helper metafunctions. Meta's expression evaluator
> handles laziness.

Yes you do use helper metafunctions. Look at your implementation of fold.
a library built with full laziness, you should be able to build a SFINAE-
friendly fold like this:

template<class Iterable, class State, class Fun>
using fold = eval_if<empty&lt;Iterable>,
    fold<pop_front&lt;Iterable>, lazy_apply<Fun, State, front&lt;Iterable>>,

Is something like this possible with Meta library?


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at