| Home | Libraries | People | FAQ | More

##### boost::geometry::index::equal_to

The function object comparing Values.

###### Description

The default version handles Values which are Indexables, std::pair<T1, T2>, boost::tuple<...> and std::tuple<...> if STD tuples and variadic templates are supported. All members are compared from left to right, Geometries using boost::geometry::equals() function, other types using operator==.

###### Header

`#include <boost/geometry/index/equal_to.hpp>`

###### Synopsis

    template<typename Value>
    struct equal_to
    {
      // ...
    };

###### Template parameter(s)

Parameter | Description
--- | ---
`Value` | The type of objects which are compared by this function object.

###### Typedef(s)

Type | Description
--- | ---
`result_type` | The type of result returned by function object.

###### Member(s)

Modifier | Function | Description
--- | --- | ---
`const` | `operator()(Value const &, Value const &)` | Compare Values.

###### operator()(Value const &, Value const &)

Compare Values.

Synopsis

    bool operator()(Value const & l, Value const & r)

Modifier(s)

    const

Parameter(s)

Type | Name | Description
--- | --- | ---
`Value const &` | `l` | First value.
`Value const &` | `r` | Second value.

Returns

true if Values are equal.