mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-26 20:38:45 +08:00
Fixed issue for incorrect operation of erase(const_iterator, const_iterator)
when the terminating iterator was end() for etl::unordered_map, etl::unordered_multimap, etl::unordered_set and etl::unordered_multiset.
This commit is contained in:
parent
bb52c37eca
commit
7d7dd89c70
@ -926,7 +926,7 @@ namespace etl
|
||||
local_iterator icurrent = first_.get_local_iterator();
|
||||
local_iterator iend = last_.get_local_iterator(); // Note: May not be in the same bucket as icurrent.
|
||||
|
||||
// Find the node previous to the first one.
|
||||
// Find the node previous to the first one.
|
||||
while (iprevious->etl_next != &*icurrent)
|
||||
{
|
||||
++iprevious;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user