C++ peepz: Is it me or can you not get the value of a map component directly from the .find() call? e.g. value = myMap.find(myKey).second;
It's possible that it's not found and returns an end iterator. Alternatively, operator[] creates if not found.
-
-
Yeah, I'll trap around the "not found" issue. Someone else pointed out that I have to use -> instead of . since it returns an iterator.
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.