AK: Make unchecked_append actually unchecked

Previously it was still VERIFY'ing that there was space, this commit
downgrades that to an ASSERT.
This commit is contained in:
Ali Mohammad Pur 2026-01-15 15:08:24 +01:00 committed by Ali Mohammad Pur
parent c30e0fc602
commit 12ca0cdd4a

View file

@ -352,7 +352,7 @@ public:
ALWAYS_INLINE void unchecked_append(U&& value)
requires(CanBePlacedInsideVector<U>)
{
VERIFY(m_size < capacity());
ASSERT(m_size < capacity());
if constexpr (want_fast_last_access) {
++m_metadata.last_slot;
++m_size;