fork download
  1. #include <iostream>
  2. #include <typeinfo>
  3. using namespace std;
  4.  
  5. template <class T, class X>
  6. struct TemplatePrototypeOne {
  7. void doSomethingElse() {
  8. cout << "TemplatePrototypeOne<" << typeid(T).name()
  9. << "," << typeid(X).name() << ">" << endl;
  10. }
  11. };
  12.  
  13. template <template<class...> class TemplatePrototype,
  14. class ... Ts>
  15. void doSomething()
  16. {
  17. TemplatePrototype<Ts...> aTemplateTX;
  18. aTemplateTX.doSomethingElse();
  19. }
  20.  
  21. int main() {
  22. doSomething<TemplatePrototypeOne,int,float>();
  23. return 0;
  24. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
TemplatePrototypeOne<i,f>