I have an enum:
enum FlowType {
LEVEL_FLOW = 1,
PARTITION_FLOW = 3,
ORDERBOOK_EVENT_FLOW = 4
}
I want to create a map such that on searching the integer part above, I must get the "LEVEL_FLOW" part back.
I am unable to come up with the map declaration and insertion statements. Please help.
This is waht I tried:
std::map<int, FlowType > FlowsMap;
FlowsMap.insert(std::make_pair<1, FlowType.LEVEL_FLOW >);