How to define vFunctionCall in map in c++
<p>How to define vFunctionCall in map?</p>

<p>It is right syntax?</p>

<pre><code>typedef void(*vFunctionCall)(CommandStruct *cs);
static std::map&lt; Command, vFunctionCall &gt; Functions = {
    { e_testing, test},
    { e_echo, to_do }
};
</code></pre>

<p>Where:</p>

<pre><code>struct CommandStruct {
     //some variables
}

enum Command {
     //some enums
}

void test(CommandStruct * cs);

void to_do(CommandStruct * cs);
</code></pre>

<p>Thank you for your help.</p>