[libcxx-commits] [libcxx] [libc++] Implement N4258(Cleaning-up noexcept in the Library) (PR #120312)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jan 24 02:34:09 PST 2025
================
@@ -0,0 +1,61 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// <map>
+
+// map& operator=(map&& c)
+// noexcept(
+// allocator_type::propagate_on_container_move_assignment::value &&
+// is_nothrow_move_assignable<allocator_type>::value &&
+// is_nothrow_move_assignable<key_compare>::value);
+
+// This tests a conforming extension
----------------
philnik777 wrote:
The standard just specifies `allocator_traits<Allocator>::is_always_equal::value && is_nothrow_move_assignable_v<Compare>`.
https://github.com/llvm/llvm-project/pull/120312
More information about the libcxx-commits
mailing list