Why there is direct interface for initializer_list but not for other containers in std::max

前端 未结 0 1974
失恋的感觉
失恋的感觉 2020-11-22 09:32

To find the max element of any vector, we can use std::max_element(...) and then deference the returned iterator, or iterate over all the elements and use the std::max(const

相关标签:
回答
  • 消灭零回复
提交回复
热议问题