fork download
  1. #ifndef MYMAP_H
  2. #define MYMAP_H
  3.  
  4. #include <map>
  5. #include <unordered_map>
  6. #include <iostream>
  7.  
  8. typedef size_t L1Entry;
  9.  
  10. template<template <typename...> class Container>
  11. class MyClass
  12. {
  13. typedef Container<int, L1Entry> MapType;
  14. public:
  15. void printMap();
  16.  
  17. private:
  18. MapType myMap;
  19. };
  20.  
  21. template<template <typename...> class Container>
  22. void MyMap< Container<Args...> >::print()
  23. {
  24. // ... do the actual printing
  25. std::cout << "You'd print stuff here." << std::endl;
  26. }
  27.  
  28. #endif // MYMAP_H
  29.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty