Following java method returns keys of hashtable as Enumeration.
Hashtable<String, Object> props = new Hastable<String, Object>();
// some code here
public final Enumeration getPropertyURIs() {
return props.keys();
}
I want to translate this code to C++.
More specifically, how can I implement the same function in C++ which returns enum of keys of std::map?
An
enumin C++ is just a collection of constants.Do you mean something like this, perhaps?