//I'm talking about the std::map and std::set here.
Consider the following situation:
I have a set defined as follows;
I also have a map declared as follows;Code:std::set<std::string> operators = {"+","-","*","/","^","&","=",":",".","%"};
Is there a way to *link* the contents of the former set to the later map, possibly with another container ? (I'd assign the function pointers by hand)Code:typedef token (*opfunc)(std::vector<token>); std::map<std::string,opfunc);