[#bsl-equal_to-09-operator_call]
= xref:bsl.adoc[bsl]::xref:bsl/equal_to-09.adoc[equal&lowbar;to&lt;void&gt;]::operator()
:relfileprefix: ../../
:mrdocs:

Return `true` if the specified `lhs` compares equal to the specified `rhs` using the equality&hyphen;comparison operator, `lhs &equals;&equals; rhs`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE1,
    class TYPE2&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
decltype(std&colon;&colon;forward&lt;TYPE1&gt;(lhs) &equals;&equals; std&colon;&colon;forward&lt;TYPE2&gt;(rhs))
operator()(
    TYPE1&& lhs,
    TYPE2&& rhs) const noexcept(&sol;&ast; see-below &ast;&sol;);
----

== Description

Implemented inline because of all the duplication of `std&colon;&colon;forward&lt;TYPE1&gt;(lhs) &equals;&equals; std&colon;&colon;forward&lt;TYPE2&gt;(rhs)`&period;

== Exception specification

This function is potentially-throwing unless `noexcept(std&colon;&colon;forward&lt;TYPE1&gt;(lhs) &equals;&equals; std&colon;&colon;forward&lt;TYPE2&gt;(rhs))`.

== Return Value

`true` if `lhs` compares equal to `rhs`, and `false` otherwise

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand operand to compare for equality
| *rhs*
| right&hyphen;hand operand to compare for equality
|===


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