The function object comparing Values. More...
#include <equal_to.hpp>
Public Types | |
typedef bool | result_type |
The type of result returned by function object. | |
Public Member Functions | |
bool | operator() (Value const &l, Value const &r) const |
Compare values. If Value is a Geometry geometry::equals() function is used. |
The function object comparing Values.
It compares Geometries using geometry::equals() function. Other types are compared using operator==. The default version handles Values which are Indexables. This template is also specialized for std::pair<T1, T2> and boost::tuple<...>.
Value | The type of objects which are compared by this function object. |
IsIndexable | If true, Values are compared using boost::geometry::equals() functions. |
bool boost::geometry::index::detail::equal_to< Value, IsIndexable >::operator() | ( | Value const & | l, |
Value const & | r | ||
) | const [inline] |
Compare values. If Value is a Geometry geometry::equals() function is used.
l | First value. |
r | Second value. |
Reimplemented in boost::geometry::index::equal_to< Value >.