Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2004-07-10 02:16:14


David Abrahams <dave <at> boost-consulting.com> writes:

>
> "Peter Dimov" <pdimov <at> mmltd.net> writes:
>
> > Or maybe we should just use
> >
> > int cv[] = { 1, 2, 3 };
> > v.assign( cv, end(cv) );
> >
> > as I've been doing for years.
>
> Looks good to me. In what way does Thorsten's library improve on
> this idiom?

well, you can initialize too. And for maps, you can use (key,value) lists.
And you can say you're having a list of X and want to construct them
with n arguments using (arg1,arg2,...,argn) syntax.

Please see the docs in the cvs in libs/assign/index.html

br

Thorsten


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