fork download
  1. #include <iostream>
  2. #include <type_traits>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. using Storage = std::aligned_storage_t<sizeof(int), alignof(int)>;
  9. Storage s[100];
  10.  
  11. std::cout << sizeof(s) << std::endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
400