title: std::map of member function pointers?
body: <p>I need to implement an <code>std::map</code> with <code>&lt;std::string, fn_ptr&gt;</code> pairs. The function pointers are pointers to methods of the same class that owns the map. The idea is to have direct access to the methods instead of implementing a switch or an equivalent.</p>
  
  <p>( I am using <code>std::string</code> as keys for the map )</p>
  
  <p>I'm quite new to C++, so could anyone post some pseudo-code or link that talks about implementing a map with function pointers?  ( pointers to methods owned by the same class that owns the map )</p>
  
  <p>If you think there's a better approach to my problem, suggestions are also welcome.</p>