cxx_template_template_parameters.cpp 162 B

123456789101112131415161718
  1. template<template <typename> class T, typename U>
  2. void someFunc(T<U>)
  3. {
  4. }
  5. template<typename T>
  6. struct A
  7. {
  8. };
  9. void otherFunc()
  10. {
  11. A<int> a;
  12. someFunc(a);
  13. }