...世界上最受推崇、设计精良的 C++ 库项目之一。 — Herb Sutter 和 Andrei Alexandrescu, C++ Coding Standards
...世界上最受推崇、设计精良的 C++ 库项目之一。
boost::is_less — is_less 函子
// In header: <boost/algorithm/string/compare.hpp> struct is_less { // public member functions template<typename T1, typename T2> bool operator()(const T1 &, const T2 &) const; };
标准 std::less 的便捷版本。操作是模板化的,因此在构造时无需指定确切的类型
is_less
template<typename T1, typename T2> bool operator()(const T1 & Arg1, const T2 & Arg2) const;
使用 > 运算符比较两个操作数