[#bsl-equal_to-0d]
= xref:bsl.adoc[bsl]::equal&lowbar;to
:relfileprefix: ../
:mrdocs:

This `struct` defines a binary comparison functor applying `operator&equals;&equals;` to two `VALUE&lowbar;TYPE` objects&period; This class conforms to the C&plus;&plus;11 standard specification of `std&colon;&colon;equal&lowbar;to` that does not require inheriting from `std&colon;&colon;binary&lowbar;function`&period; Note that this class is an empty POD type&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;equalto&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class VALUE&lowbar;TYPE = void&gt;
struct equal&lowbar;to;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:bsl/equal_to-0d/first_argument_type.adoc[`first&lowbar;argument&lowbar;type`] 
| This `typedef` is an alias to the first argument type of `operator()`&period;
| xref:bsl/equal_to-0d/result_type.adoc[`result&lowbar;type`] 
| This `typedef` is an alias to the result type of `operator()`&period;
| xref:bsl/equal_to-0d/second_argument_type.adoc[`second&lowbar;argument&lowbar;type`] 
| This `typedef` is an alias to the second argument type of `operator()`&period;
|===


== 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&hyphen;comparison operator, `lhs &equals;&equals; rhs`&period;
|===


== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:bsl/equal_to-09.adoc[`equal&lowbar;to&lt;void&gt;`] 
| This `struct` defines a binary comparison functor applying `operator&equals;&equals;` to two objects of (possibly different) types&period; Note that this class is an empty POD type&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
