fork(5) download
  1. #include <iostream>
  2. #include <tuple>
  3.  
  4. struct Empty {};
  5. struct Thing { std::string name; Empty e; };
  6.  
  7. int main() {
  8. std::cout << sizeof(std::string) << "\n";
  9. std::cout << sizeof(std::tuple<std::string, Empty>) << "\n";
  10. std::cout << sizeof(Thing) << "\n";
  11. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
32
32
40