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

PrevUpHomeNext
boost::geometry::index::equal_to
operator()(Value const &, Value const &)

The function object comparing Values.

Description

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

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. If Value is a Geometry geometry::equals() function is used.

Compare values. If Value is a Geometry geometry::equals() function is used.

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