
10 Jul
2004
10 Jul
'04
7:16 a.m.
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