Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template greater

boost::pfr::greater — std::greater like comparator that returns boost::pfr::gt (x, y)

Synopsis

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

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

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

Description

greater public member functions

  1.  ( x,  y) ;

    Returns:

    true if field of x greater 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