Splitting std::map

Hello,

I’d like to write a class with a data member of type std::map. According to the current document, the only std container that can be split is vector, but it says “as of v4.01/00”. What is the current support for splitting stl containers? If stl map is not supported, is there a splittable dynamic hash table?

Cheers
Akira

How do you mean ‘split a container’ ?

[quote]How do you mean ‘split a container’ ?[/quote]ROOT has a class TTree that allows to store a large number of objects. Those object can be stored in split mode. In non-split mode, each object is store serially, one data member after the other. In non-split mode, each data members of the object are stored ‘separately’ (in a different branch). The advantage of this split mode is that you can later retrieve ‘just’ one data member of all the object.
This is very useful in analysis for example when you want to plot ‘just’ the px of the tracks (in which case, you read from the disk only the px of all the objects) instead of all the content of all the objects.

Cheers,
Philippe.

[quote]If stl map is not supported, is there a splittable dynamic hash table? [/quote]The non-C++ standard hash_map is support on gcc.

Cheers,
Philippe.