How do I find the largest int in a std::set?

后端 未结 5 1529
深忆病人
深忆病人 2021-02-03 17:19

I have a std::set, what\'s the proper way to find the largest int in this set?

5条回答
  •  故里飘歌
    2021-02-03 17:36

    Since set sorts the element in ascending order by default, just pick up the last element in the set.

提交回复
热议问题