ModelStore get,contains,put,put_if_absent bug
The best way to look stuff up in C++ maps is to first use find
, and then check if the returned iterator == map.end(), and if it isn't, then use *iterator to get the element.
The best way to look stuff up in C++ maps is to first use find
, and then check if the returned iterator == map.end(), and if it isn't, then use *iterator to get the element.