[libcxx-commits] [libcxx] [libc++] Make `<map>` `std::multimap` constexpr as part of P3372R3 (PR #161901)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 16 07:14:57 PDT 2026


================
@@ -23,32 +23,36 @@
 #include "DefaultOnly.h"
 #include "min_allocator.h"
 
-int main(int, char**) {
-  {
-    typedef std::multimap<int, DefaultOnly> M;
-    typedef M::iterator R;
-    M m;
+TEST_CONSTEXPR_CXX26
+bool test() {
+  // DefaultOnly::count is static
----------------
philnik777 wrote:

Ah, yeah, not sure we can do this. I thought it was tracking Allocator stuff, but that's not the case.

https://github.com/llvm/llvm-project/pull/161901


More information about the libcxx-commits mailing list