From 1b629da8fc658a85f07b5209f2791a5ebdf79fa1 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 24 Apr 2024 21:39:02 -0500 Subject: [PATCH] [ox/std] Make Vector::contains always noexcept --- deps/ox/src/ox/std/vector.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/ox/src/ox/std/vector.hpp b/deps/ox/src/ox/std/vector.hpp index 7811e1e7..7d649c91 100644 --- a/deps/ox/src/ox/std/vector.hpp +++ b/deps/ox/src/ox/std/vector.hpp @@ -269,7 +269,7 @@ class Vector: detail::VectorAllocator { } [[nodiscard]] - constexpr bool contains(MaybeView_t const&) const noexcept(useNoexcept); + constexpr bool contains(MaybeView_t const&) const noexcept; constexpr iterator insert( std::size_t pos, std::size_t cnt, T val) noexcept(useNoexcept); @@ -520,8 +520,8 @@ constexpr void Vector::resize(std::size_t size) n } template -constexpr bool Vector::contains(MaybeView_t const&v) const noexcept(useNoexcept) { - for (std::size_t i = 0; i < m_size; i++) { +constexpr bool Vector::contains(MaybeView_t const&v) const noexcept { + for (std::size_t i = 0; i < m_size; ++i) { if (m_items[i] == v) { return true; }