fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<typename>
  5. struct de_cay; // undefined
  6.  
  7. template<size_t N, typename T>
  8. struct de_cay<T[N]> {
  9. static const size_t size = N;
  10. using type = T;
  11. };
  12.  
  13. int main()
  14. {
  15. cout << de_cay<int[5][2]>::size << endl;
  16. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
5