Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct is_less

boost::algorithm::is_less — is_less functor

Synopsis

// 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;
};

Description

Convenient version of standard std::less. Operation is templated, therefore it is not required to specify the exact types upon the construction

is_less public member functions

  1. template<typename T1, typename T2> 
      bool operator()(const T1 & Arg1, const T2 & Arg2) const;
    Functor operation.

    Compare two operands using > operator


PrevUpHomeNext