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:
John Wellbelove 2020-08-16 11:32:23 +01:00
parent bb52c37eca
commit 7d7dd89c70

View File

@ -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;