|
SU2
|
creates a map from a list by overloading operator() More...
#include <option_structure.hpp>
Public Member Functions | |
| CCreateMap (const T &key, const U &val) | |
| CCreateMap< T, U > & | operator() (const T &key, const U &val) |
| operator std::map< T, U > () | |
creates a map from a list by overloading operator()
| T | - the key type in the map |
| U | - the mapped value type in the map |
We need this to create static const maps that map strings to enum types. The implementation is based on the Boost.Assign library. This particular version is taken from http://stackoverflow.com/questions/138600/initializing-a-static-stdmapint-int-in-c
1.8.12