Not really. I don't see why you would need to pass both maps to a function.
You would have to give me an example of what the function would be for before I even consider that possibility. I just can't imagine a scenario where you would pass one map to a function, then pass a swapped map of that map to the same function...
I did create options:Stuff like that is just a bad development practice -- you want to create options, not curtail them. At a certain point you will hit something this inflexibility will render impossible, meaning the programmer will have to create his/her own improptu interface, as above.
Sorry, but I can just not imagine why you would need anything other than those functions for dealing with the enumeration names and their associated numerical values. swap() is a luxury actually. The main reason I added it in to begin with, was in case I needed to swap other maps than the enumeration maps. The other reason was for the rare times when someone might want to swap the enumerations map around, for whatever reason.Code:const vector<string>& getEnumerationNames(); const string& getNameOfEnum(); const int& getNumOfEnumerations(); const string& getEnumerationName(nameofenum enumeration); const map<string, unsigned int> getEnumerationsMap();