mirror of
https://github.com/boostorg/container.git
synced 2026-01-19 04:02:17 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user