title: Storing different function pointers in one array?
body: <p>If I have two functions like this:</p>
  <pre><code>void funcA(std::string str);
  
  void funcB(int32_t i, int32_t j);
  </code></pre>
  <p>Can I store pointers to both of these functions in the same map? Example:</p>
  <pre><code>std::unordered_map&lt;std::string, SomeType&gt; map;
  map.emplace(&quot;funcA&quot;, &amp;funcA);
  map.emplace(&quot;funcB&quot;, &amp;funcB);
  map[&quot;funcA&quot;](&quot;test&quot;);
  map[&quot;funcB&quot;](3,4);
  </code></pre>
  <p>Would std::any work? or maybe some kind of template with std::function.</p>
  <p>Edit:
  Functions could also have different return types.
  PS:
  I am currently learning about Callbacks and Eventmanagers in videogames.</p>