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
news:opr5zufwh4s0jexp_at_news.gmane.org...
>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
do.

>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.

br

Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk