...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
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<...>.
#include <boost/geometry/index/equal_to.hpp>
template<
typename Value
>
struct equal_to
{
// ...
};
Parameter |
Description |
---|---|
|
The type of objects which are compared by this function object. |
Modifier |
Function |
Description |
---|---|---|
|
Compare values. If Value is a Geometry geometry::equals() function is used. |
Compare values. If Value is a Geometry geometry::equals() function is used.
bool
operator()
(
Value const &
l
,
Value const &
r
)
const
Type |
Name |
Description |
---|---|---|
|
|
First value. |
|
|
Second value. |
true if values are equal.