如何确定是否设置了std :: map存储中的元素?例:
#include <map> #include <string> using namespace std; map<string, FOO_class> storage; storage["foo_el"] = FOO_class();
有类似的东西if (storage.isset("foo_el"))吗?
if (storage.isset("foo_el"))
c++ map
c++ ×1
map ×1