fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4. #include <type_traits>
  5. #include <array>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. cout << sizeof(int [10]) << endl;
  11. cout << is_trivial<int [10]>::value << endl;
  12. cout << is_trivial<string>::value << endl;
  13. cout << is_trivial<vector<int>>::value << endl;
  14. cout << is_trivial<array<int, 10>>::value << endl;
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 4336KB
stdin
Standard input is empty
stdout
40
1
0
0
1