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 less_equal

boost::log::less_equal — Less or equal predicate.

Synopsis

// In header: <boost/log/utility/functional/logical.hpp>


struct less_equal {
  // types
  typedef bool result_type;

  // public member functions
  template<typename T, typename U> bool operator()(T const &, U const &) const;

  // private static functions
  template<typename T, typename U> 
    static bool op(T const &, U const &, false_type);
  template<typename T, typename U> 
    static bool op(T const &, U const &, true_type);
};

Description

less_equal public member functions

  1. template<typename T, typename U> 
      bool operator()(T const & left, U const & right) const;

less_equal private static functions

  1. template<typename T, typename U> 
      static bool op(T const & left, U const & right, false_type);
  2. template<typename T, typename U> 
      static bool op(T const & left, U const & right, true_type);

PrevUpHomeNext