fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A { int a = 1; int b = 2; };
  5.  
  6. int main() {
  7. // your code goes here
  8. cout << std::is_compound<A>() << endl;
  9. cout << std::is_trivial<A>() << endl;
  10. cout << std::is_standard_layout<A>() << endl;
  11. cout << std::is_trivially_copyable<A>() << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 4436KB
stdin
Standard input is empty
stdout
1
0
1
1