dimanche 1 octobre 2017

difference between map_instance[key] vs. map_instance.find(key) in c++

I have a map defined as

static map<unsigned int, deque<FOO_STRUCT*> > CV_MAP; 

and I was wondering if one method was better than the other between:

map_instance[key] vs. map_instance.find(key).

Aucun commentaire:

Enregistrer un commentaire