Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

函数模板 ilexicographical_compare - Boost C++ 函数库
PrevUpHomeNext

函数模板 ilexicographical_compare

boost::algorithm::ilexicographical_compare — 词法比较谓词(不区分大小写)

提要

// In header: <boost/algorithm/string/predicate.hpp>


template<typename Range1T, typename Range2T> 
  bool ilexicographical_compare(const Range1T & Arg1, const Range2T & Arg2, 
                                const std::locale & Loc = std::locale());

描述

此谓词是 std::lexicographical_compare 的重载,用于范围参数。它检查第一个参数是否在词法上小于第二个参数。元素比较时不区分大小写。

[Note] 注意

此函数提供强异常安全保证

参数

Arg1

第一个参数

Arg2

第二个参数

位置

用于不区分大小写比较的区域设置

返回

测试结果


PrevUpHomeNext