fork(38) download
  1. #include <tuple>
  2.  
  3. template <typename... Types> class Data
  4. {
  5. std::tuple<Types...> items;
  6. };
  7.  
  8. struct Item1
  9. {
  10. int a;
  11. };
  12.  
  13. struct Item2
  14. {
  15. float x, y, z;
  16. };
  17.  
  18. struct Item3
  19. {
  20. std::string name;
  21. };
  22.  
  23. int main()
  24. {
  25. Data<Item1, Item2> data1;
  26. Data<Item3> data2;
  27. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty