I am quite new to c++. I read that structs in c++ are created at compile time, so there is probably no way to do dynamical structs. But maybe there is another container type, which fits my situation? I want to parse data from HDF5 files and use them in C++. So I don't know the content at compile time.
Basically I have 3 types (let it be A,B,C) of objects which I want to be able to store in a struct like manner - that means accessing it by the name, which is provided by HDF5 file. However I don't know at compile time the number of objects with type A,B or C. But when parsing the HDF5 file I can find out. Is there any container in c++ which supports that or do I have to write my own?