Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2002-10-06 17:58:51


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.

I would like to know if people were interested in a submission of this
stuff.
It might be a big help in learning, testing and prototyping situations.

Anyway, the stuff works with gcc 2.95.3-10 (cygwin special) with STLPort
and como 4.3.0 and libcomo (almost that is :-(, libcomo is given some wierd
feedback).

Under the download section all the relevant code can be browsed.

There is still some tasks that needs to be done (besides cleaning up). The
biggest must
be testing it with different compilers, hope there's some people here that
can help.

best regards

Thorsten Ottosen, Aalborg University
nesotto_at_[hidden]
---------------------------------------------------
C++:

my_map[key]++;

Java:

if ( !my_map.containsKey( key ) )
    my_map.put( key, new Integer( 1 ) );
else
{
    Integer count = ( Integer )my_map.get( key ) );
    int icount = count.IntValue();
    my_map.put( key, new Integer( ++icount ) );
}


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