Boost C++ Libraries

...one 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.
PrevUpHomeNext
boost::geometry::index::equal_to
operator()(Value const &, Value const &)

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.

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.


PrevUpHomeNext