So, what I am searching for would maybe look like this (without the xxx
):
const xxx<std::string, std::string, void (*)(std::string)> commands = {
{"exit", "Exit Program", f1},
{"test", "Start Test", f2},
{"help, h", "Help Screen", f3}
};
As far as I know, lists, vectors, maps, etc. can't do that. Is there anything I can just replace the xxx
with? Or is there an easy other way to do it?