[#bsl-equal_to-0d] = xref:bsl.adoc[bsl]::equal_to :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VALUE_TYPE = void> struct equal_to; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/equal_to-0d/first_argument_type.adoc[`first_argument_type`] | This `typedef` is an alias to the first argument type of `operator()`. | xref:bsl/equal_to-0d/result_type.adoc[`result_type`] | This `typedef` is an alias to the result type of `operator()`. | xref:bsl/equal_to-0d/second_argument_type.adoc[`second_argument_type`] | This `typedef` is an alias to the second argument type of `operator()`. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/equal_to-0d/operator_call.adoc[`operator()`] | Return `true` if the specified `lhs` compares equal to the specified `rhs` using the equality‐comparison operator, `lhs == rhs`. |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:bsl/equal_to-09.adoc[`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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#