Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::index::detail::equal_to< Value, IsIndexable > Struct Template Reference

The function object comparing Values. More...

#include <equal_to.hpp>

Inheritance diagram for boost::geometry::index::detail::equal_to< Value, IsIndexable >:

Public Types

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

Public Member Functions

bool operator() (Value const &l, Value const &r) const
 Compare values. More...
 

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 Typedef Documentation

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

The type of result returned by function object.

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.

Referenced by boost::geometry::index::equal_to< Value >::operator()().


The documentation for this struct was generated from the following file: