fork download
  1. #include <map>
  2.  
  3. template <typename T, typename Comparator = std::less<typename T::Key>>
  4. struct Container
  5. {
  6. std::map<typename T::Key, T*, Comparator> m;
  7. };
  8.  
  9. struct Thing
  10. {
  11. typedef int Key;
  12. };
  13.  
  14. int main()
  15. {
  16. Container<Thing> c;
  17. }
Success #stdin #stdout 0s 2824KB
stdin
Standard input is empty
stdout
Standard output is empty