Boost logo

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 ).
> 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
> where I have set up a beta description.


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.


Dirk Gerrits

Boost list run by bdawes at, gregod at, cpdaniel at, john at