stl - Iterate keys in a C++ map - Stack Overflow

stl - Iterate keys in a C++ map - Stack Overflow

瀏覽:1207
日期:2025-12-18
Is there a way to iterate over the keys, not the pairs of a C++ map? ... Without Boost You can do this by simply extending the STL iterator for that map. For example, a mapping of strings to ints: #include typedef map ScoreMap; typedef ......看更多