|
Boost : |
From: Dirk Gerrits (dirk_at_[hidden])
Date: 2002-10-07 03:27:38
Thorsten Ottosen wrote:
> Hi,
>
> Some of you might know Leor Zelman's STL Container Initialization Library
> ( if not, then see http://www.bdsoft.com/tools/initutil.html ).
>
> I took a little different approach to achieve some really easy
> initialization of STL containers.
> It's double work to tell about it here. Please go to
> http://www.cs.auc.dk/~nesotto/init/
> where I have set up a beta description.
>
Your:
vector<int> primes;
set_cont( v ) += 1, 2, 3, 5, 7, 11;
isn't 'really' an initialization. The vector gets default constructed
first. Still, the functionality seems pretty nice. But I'm personally
not such a fan of operator overloading 'mutilation' as in the IOStreams,
Boost.Format and your set_cont.
Regards,
Dirk Gerrits
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk