This struct defines a binary comparison functor applying operator== to two VALUE_TYPE objects. This class conforms to the C++11 standard specification of std::equal_to that does not require inheriting from std::binary_function. Note that this class is an empty POD type.

Synopsis

Declared in <bslstl_equalto.h>

template<class VALUE_TYPE = void>
struct equal_to;

Type Aliases

Name

Description

first_argument_type

This typedef is an alias to the first argument type of operator().

result_type

This typedef is an alias to the result type of operator().

second_argument_type

This typedef is an alias to the second argument type of operator().

Member Functions

Name

Description

operator()

Return true if the specified lhs compares equal to the specified rhs using the equality‐comparison operator, lhs == rhs.

Specializations

Name

Description

equal_to<void>

This struct defines a binary comparison functor applying operator== to two objects of (possibly different) types. Note that this class is an empty POD type.

Created with MrDocs