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 an old version of Boost. Click here to view this page for the latest version.

Struct template equal_to

boost::pfr::equal_to — std::equal_to like comparator that returns boost::pfr::eq (x, y)


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

template<typename T = void> 
struct equal_to {

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


equal_to public member functions

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


    true if each field of x equals the field with same index of y.