I need to parse and store a somewhat (but not too) complex stream and need to store the parsed result somehow. The stream essentially contains name-value pairs with v
v
Since your data types are fixed what about something like this...
Have something like a std::vector for each type of value. And your map would have as the second value of the pair the index to the data.
std::vector vInt; std::vector vFloat; . . . map> Data;