Boost C++ Libraries 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 a snapshot of the master branch, built from commit bd78d4d549.

Struct template greater

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


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

template<typename T = void> 
struct greater {

  // public member functions
  bool operator()(const T &, const T &) const;


greater public member functions

  1. bool operator()(const T & x, const T & y) const;


    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.