| 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.

<h7> Synopsis </h7>

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

<h7> Modifier(s) </h7>

    const

<h7> Parameter(s) </h7>

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

<h7> Returns </h7>

true if Values are equal.