
I'm working on an application (a data analysis system built in C++) for
which it would be helpful to have nested (multidimensional) containers
other than ordinary arrays. I have defined a generic 'data' class which
I like to store in std::vector's. For a very simple example, a
'data' might be a double representing a student's score on an exam, or
in more complex settings it might be some sort of spatial map, or a
multidimensional set of records for a medical patient.
I am interested in structures where 'data' is nested across multiple
levels. For example, test scores are nested within students, students
nested within teachers, nested within school districts, etc. For a
single layer of nesting a std::map