特牛网址导航

[C++] How to find the biggest key in a std::map?_stdmap最大值及key-CSDN博客

网友收藏
文章浏览阅读167次。[C++] How to find the biggest key in a std::map?The method m.rbegin();Maps (and sets) are sorted, so the first element is the smallest, and the last element is the largest. By default maps use std::less, but you can switch the comparer and this would of _stdmap最大值及key