Guest User

Untitled

a guest
Dec 15th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #ifndef MYAPP
  2. #define MYAPP
  3. #include <map>
  4. namespace MyApp{
  5. class MyClass{
  6. private:
  7. static std::map<int, bool> SomeMap;
  8. public:
  9. static void DoSomething(int arg);
  10. }
  11. }
  12. #endif MYAPP
  13.  
  14. #include "Header.h"
  15. #include <map>
  16. namespace MyApp{
  17. void MyClass::DoSomething(int arg){
  18. if(MyClass::SomeMap[5]){
  19. ...
  20. }
  21. }
  22. }
Add Comment
Please, Sign In to add comment