Boost.Geometry.Index
 All Classes Functions Typedefs
Public Types | Public Member Functions
boost::geometry::index::detail::equal_to< Value, IsIndexable > Struct Template Reference

The function object comparing Values. More...

#include <equal_to.hpp>

List of all members.

Public Types

typedef bool result_type
 The type of result returned by function object.

Public Member Functions

bool operator() (Value const &l, Value const &r) const
 Compare values. If Value is a Geometry geometry::equals() function is used.

Detailed Description

template<typename Value, bool IsIndexable = is_indexable<Value>::value>
struct boost::geometry::index::detail::equal_to< Value, IsIndexable >

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

Template Parameters:
ValueThe type of objects which are compared by this function object.
IsIndexableIf true, Values are compared using boost::geometry::equals() functions.

Member Function Documentation

template<typename Value, bool IsIndexable = is_indexable<Value>::value>
bool boost::geometry::index::detail::equal_to< Value, IsIndexable >::operator() ( Value const &  l,
Value const &  r 
) const [inline]

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

Parameters:
lFirst value.
rSecond value.
Returns:
true if values are equal.

Reimplemented in boost::geometry::index::equal_to< Value >.


The documentation for this struct was generated from the following file:
 All Classes Functions Typedefs