fork(3) download
  1. #include <iostream>
  2. #include <type_traits>
  3. #include <tuple>
  4.  
  5. int main() {
  6. std::cout << std::is_trivially_copyable<std::tuple<int>>::value << std::endl;
  7. std::cout << std::is_trivially_copyable<std::pair<int, int>>::value << std::endl;
  8.  
  9. std::cout << std::is_trivial<std::tuple<int>>::value << std::endl;
  10. std::cout << std::is_trivial<std::pair<int, int>>::value << std::endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
0
0
0
0