fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. template<typename T>
  6. void f(T t){std::cout << "used";}
  7.  
  8. template<typename T>
  9. constexpr void a(T t){f(t);}
  10.  
  11.  
  12. int main() {
  13. a(1);
  14. f(2);
  15. return 0;
  16. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
usedused