fork(2) download
  1. #include <iostream>
  2. #include <vector>
  3. #include <list>
  4.  
  5. template<typename T>
  6. class MyVectorCollection
  7. {
  8. using collection = std::vector<T>;
  9. };
  10.  
  11. template<typename C, typename T>
  12. class MyGenericCollection
  13. {
  14. using collection = C;
  15. };
  16.  
  17. template<template<typename, typename> class C, typename T>
  18. class MyMoreGenericCollection
  19. {
  20. using collection = C<T, std::allocator<T>>;
  21. };
  22.  
  23. int main() {
  24. // your code goes here
  25. MyVectorCollection<int> a;
  26. MyGenericCollection<std::list<int>, int> b;
  27. MyMoreGenericCollection<std::list, int> c;
  28. return 0;
  29. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
Standard output is empty