In python, you can easily define a dict object in the head of a python file or in another file and import it. Using that dict as a mapping where key corresponds to a value you want. For instance:
MIMES = {
'html': 'text/html',
'js': 'application/javascript',
...
}
What's the recommended way to set something similar up in C++. There are a few instances where I need to do this in different contexts so I'm not looking for a Mime-type library. Just want to find out what best practice is for this type of situation in C++.