[libcxx-commits] [libcxx] [libc++] Make `<map>` `std::multimap` constexpr as part of P3372R3 (PR #161901)
Vinay Deshmukh via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 10 00:53:39 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
----------------
vinay-deshmukh wrote:
> Can we refactor this to be an argument instead? Same for other places.
do we want to do this for `Counter` as well:
https://github.com/llvm/llvm-project/blob/81967cfb4ca816c59a1c9719f4aa773730686310/libcxx/test/std/containers/associative/map/map.modifiers/merge.pass.cpp#L62
?
https://github.com/llvm/llvm-project/pull/161901
More information about the libcxx-commits
mailing list