Stl Map Remove Item

[Solved] Stl Map Remove Item | Solidity - Code Explorer | yomemimo.com
Question : stl map remove item

Answered by : malo-c

it=mymap.find('b');
mymap.erase (it); // erasing by iterator
mymap.erase ('c'); // erasing by key
it=mymap.find ('e');
mymap.erase ( it, mymap.end() ); // erasing by range

Source : https://www.cplusplus.com/reference/map/map/erase/ | Last Update : Wed, 27 Jan 21

Answers related to stl map remove item

Code Explorer Popular Question For Solidity