Boost C++ 库

...世界上最受推崇、设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

Struct is_less - Boost C++ 函数库
PrevUpHomeNext

Struct is_less

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 公共成员函数

  1. template<typename T1, typename T2> 
      bool operator()(const T1 & Arg1, const T2 & Arg2) const;
    函子操作。

    使用 > 运算符比较两个操作数


PrevUpHomeNext