C
Christof Warlich
Hi,
this is an STL newbe question, sorry if it is too stupid:
Is there a way to statically _initialize_ an STL map, i.e. not at runtime?
There seems to be a map constructor that expects a start and an end
iterator, which
gives me some hope. But then I need something to iteate upon, and as
much as I
understand, this must be an array of STL pairs that match the map's
template
specification. Thus, could my problem be reduced to creating an array of
pairs,
and if yes, how do I statically create _and_ initialize an array of
objects (i.e. pairs)?
Thanks for any help,
Christof
this is an STL newbe question, sorry if it is too stupid:
Is there a way to statically _initialize_ an STL map, i.e. not at runtime?
There seems to be a map constructor that expects a start and an end
iterator, which
gives me some hope. But then I need something to iteate upon, and as
much as I
understand, this must be an array of STL pairs that match the map's
template
specification. Thus, could my problem be reduced to creating an array of
pairs,
and if yes, how do I statically create _and_ initialize an array of
objects (i.e. pairs)?
Thanks for any help,
Christof