[libcxx-commits] [PATCH] D127672: [libc++] Test the size of basic_string

Hubert Tong via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 16 13:30:18 PDT 2022


hubert.reinterpretcast added inline comments.


================
Comment at: libcxx/test/libcxx/strings/basic.string/sizeof.compile.pass.cpp:59
+static_assert(sizeof(small_iter_allocator<char>) == 1);
+static_assert(sizeof(std::string::__short) == 6);
+
----------------
At least historically, the value is 12.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127672/new/

https://reviews.llvm.org/D127672



More information about the libcxx-commits mailing list