泛型算法系列36:lexicographical_compare()

来源:互联网 发布:辐射4赵船长 知乎 编辑:程序博客网 时间:2024/06/03 16:31

 

//重载1,如果[first1, last1)按字典序列小于[first2, last2),返回true,否则返回false。

//重载2,功能同重载1,增加了比较函数comp,即大小关系由comp函数确定。

原创粉丝点击