fork download
  1. template<typename T>
  2. struct a_p
  3. {
  4. typedef T**********type;
  5. };
  6.  
  7. template<int N,typename T>
  8. struct a_ps : a_p<typename a_ps<N-1, T>::type> {};
  9.  
  10.  
  11. template<typename T>
  12. struct a_ps<0,T>
  13. {
  14. typedef T type;
  15. };
  16.  
  17. template<int N, typename T>
  18. struct amp : a_ps<80,typename amp<N-1, T>::type> {};
  19.  
  20. template<typename T>
  21. struct amp<0,T>
  22. {
  23. typedef T type;
  24. };
  25.  
  26. int main()
  27. {
  28. amp<80, int>::type p;
  29. }
  30.  
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty