From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2002-10-07 12:26:57
> Why not make an iterator adaptor (initialization_iterator?)
> that holds a list of values with which to initialize. And
> then pass it to any of the STL containers. (I can post my
> implementation if it's interesting):
> std::list<int> primes(
I like this idea. But proposed interface look like a waste since all of the
argument are know at compile time.
I would rather preper:
make_init_iterator<int, mpl::ct_list<2,3,5,7,11> >(),
For exact syntax consult MPL list specification.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk