]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: constexpr priority_queue
authorYuao Ma <c8ef@outlook.com>
Tue, 2 Jun 2026 15:18:26 +0000 (23:18 +0800)
committerYuao Ma <c8ef@outlook.com>
Tue, 2 Jun 2026 16:35:34 +0000 (00:35 +0800)
commit5a6ae2b286a73048bcd28e7a2d9e8ca4bee00a98
tree30a7bd7278d49973e185d77fb191dba7d534329a
parentf95105f02768d3ca404ea5afc846d378fe1e16a2
libstdc++: constexpr priority_queue

This patch makes priority_queue constexpr as part of P3372R3.

libstdc++-v3/ChangeLog:

* include/bits/stl_queue.h: Add constexpr.
* testsuite/23_containers/priority_queue/constexpr.cc: New test.
libstdc++-v3/include/bits/stl_queue.h
libstdc++-v3/testsuite/23_containers/priority_queue/constexpr.cc [new file with mode: 0644]