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::equal_to< Value > Struct Template Reference

The function object comparing Values. More...

#include <equal_to.hpp>

Inheritance diagram for boost::geometry::index::equal_to< Value >:
Collaboration diagram for boost::geometry::index::equal_to< Value >:

Public Types

typedef detail::equal_to
< Value >::result_type 
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>
struct boost::geometry::index::equal_to< Value >

The function object comparing Values.

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

Template Parameters
ValueThe type of objects which are compared by this function object.

Member Typedef Documentation

template<typename Value >
typedef detail::equal_to<Value>::result_type boost::geometry::index::equal_to< Value >::result_type

The type of result returned by function object.

Member Function Documentation

template<typename Value >
bool boost::geometry::index::equal_to< Value >::operator() ( Value const &  l,
Value const &  r 
) const
inline

Compare Values.

Parameters
lFirst value.
rSecond value.
Returns
true if Values are equal.

References boost::geometry::index::detail::equal_to< Value, IsIndexable >::operator()().


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