Advertisement
Guest User

Untitled

a guest
Nov 18th, 2014
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <map>
  2. /* definition of class, A, with a public typedef of a member function type, B */
  3.  
  4. void f() {
  5.     static std::map<std::string, A::B> strToFunction (
  6.         { "string1",       &A::B1 },
  7.         { "string2",       &A::B2 }
  8.     );
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement