mirror of
https://github.com/boostorg/container.git
synced 2026-01-25 16:52:48 +01:00
Fixes #241: flat_map should support same interface as std::map
This commit is contained in:
@@ -560,6 +560,15 @@ bool test_heterogeneous_lookups()
|
||||
if(cmmap1.equal_range(find_me).second->second != 'e')
|
||||
return false;
|
||||
|
||||
//erase
|
||||
if (map1.erase(find_me) != 1)
|
||||
return false;
|
||||
if (map1.erase(find_me) != 0)
|
||||
return false;
|
||||
if (mmap1.erase(find_me) != 2)
|
||||
return false;
|
||||
if (mmap1.erase(find_me) != 0)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user