I have written a class to contain a map, the class actually has a lot more methods but the relevant parts are basically this:
class myContainer{ std::map