Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-04-05 19:28:38

Hi Bruno,

>"Bruno Martínez Aguerre" <br1_at_[hidden]> wrote in message
>What do you think of:
>vector<int> v;
>repeat(bind(vector<int>::push_back, &v, _1)) , 3, 4, 5;
>I like it, being explicit

true, but I hope it is not too difficult to know what my operator/functions

>and more general. Is something like this
>already in boost?

It wasn't quite in my original scope for the library. If there is enough
support for the idea, I could add a class with
a callback instead of ADL of insert(). Then people can craft stuff like
yours above.



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