[libcxx-commits] [libcxx] [libc++] Add input validation for set_intersection() in debug mode. (PR #101508)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Nov 12 08:11:22 PST 2024
================
@@ -80,16 +78,17 @@ struct counted_set_intersection_result {
constexpr counted_set_intersection_result() = default;
- constexpr explicit counted_set_intersection_result(std::array<int, ResultSize>&& contents) : result{contents} {}
+ constexpr explicit counted_set_intersection_result(std::array<int, ResultSize>&& contents) noexcept
+ : result{contents} {}
- constexpr void assertNotBetterThan(const counted_set_intersection_result& other) {
+ constexpr void assertNotBetterThan(const counted_set_intersection_result& other) const noexcept {
----------------
ldionne wrote:
Just curious, why add `noexcept`?
https://github.com/llvm/llvm-project/pull/101508
More information about the libcxx-commits
mailing list