
6 Apr
2004
6 Apr
'04
12:28 a.m.
Hi Bruno,
"Bruno MartÃnez Aguerre" <br1@internet.com.uy> wrote in message news:opr5zufwh4s0jexp@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