I think what the OP is looking for is STL collections, such as std::map and std::vector.