Implement the same logic as deque, resetting the back index to the first index instead of putting both at offset zero.

This commit is contained in:
Ion Gaztañaga
2026-01-02 13:39:16 +01:00
parent fe373c480b
commit 84d9a29107

View File

@@ -2156,7 +2156,7 @@ class devector
void clear() BOOST_NOEXCEPT
{
destroy_elements(begin(), end());
m_.front_idx = m_.back_idx = 0;
m_.back_idx = m_.front_idx;
}
BOOST_CONTAINER_NODISCARD inline