Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template less

boost::pfr::less — std::less like comparator that returns boost::pfr::lt (x, y)

Synopsis

// In header: <boost/pfr/functors.hpp>

template<typename T> 
struct less {
  // types
  typedef  ;  // This typedef exists only if T is void. 

  // public member functions
   (, ) ;
  template<typename V, typename U>  (, ) ;
};

Description

less public member functions

  1.  ( x,  y) ;

    Returns:

    true if field of x less than the field with same index of y and all previous fields of x equal to the same fields of y.

  2. template<typename V, typename U> 
       ( x,  y) ;

    This operator allows comparison of x and y that have different type.

    Requires:

    Exists only if T is void.


PrevUpHomeNext