[#bsl-owner_equal-operator_call-02]
= xref:bsl.adoc[bsl]::xref:bsl/owner_equal.adoc[owner&lowbar;equal]::operator()
:relfileprefix: ../../
:mrdocs:

Return `true` if `x` and `y` share the same ownership representation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class ELEMENT&lowbar;TYPE&lowbar;X,
    class ELEMENT&lowbar;TYPE&lowbar;Y&gt;
bool
operator()(
    xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr&lt;ELEMENT&lowbar;TYPE&lowbar;X&gt;] const& x,
    xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr&lt;ELEMENT&lowbar;TYPE&lowbar;Y&gt;] const& y) const noexcept;
----

== Description

Equality is determined by comparing the addresses of the `BloombergLP&colon;&colon;bslma&colon;&colon;SharedPtrRep` objects used by the specified `x` and `y`&period;

== Return Value

`true` if `x` and `y` share the same ownership representation, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| first smart pointer whose ownership is compared
| *y*
| second smart pointer whose ownership is compared
|===


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