[#bsl-owner_equal-operator_call-0d] = xref:bsl.adoc[bsl]::xref:bsl/owner_equal.adoc[owner_equal]::operator() :relfileprefix: ../../ :mrdocs: Return `true` if `x` and `y` share the same ownership representation. == Synopses Declared in `<bslstl_ownerequal.h>` Return `true` if `x` and `y` share the same ownership representation. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class ELEMENT_TYPE_X, class ELEMENT_TYPE_Y> bool xref:bsl/owner_equal/operator_call-02.adoc[operator()]( xref:bsl/shared_ptr-0a.adoc[shared_ptr<ELEMENT_TYPE_X>] const& x, xref:bsl/shared_ptr-0a.adoc[shared_ptr<ELEMENT_TYPE_Y>] const& y) const noexcept; ---- [.small]#xref:bsl/owner_equal/operator_call-02.adoc[_» more..._]# Return `true` if `x` and `y` share the same ownership representation. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class ELEMENT_TYPE_X, class ELEMENT_TYPE_Y> bool xref:bsl/owner_equal/operator_call-06.adoc[operator()]( xref:bsl/shared_ptr-0a.adoc[shared_ptr<ELEMENT_TYPE_X>] const& x, xref:bsl/weak_ptr-0d.adoc[weak_ptr<ELEMENT_TYPE_Y>] const& y) const noexcept; ---- [.small]#xref:bsl/owner_equal/operator_call-06.adoc[_» more..._]# Return `true` if `x` and `y` share the same ownership representation. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class ELEMENT_TYPE_X, class ELEMENT_TYPE_Y> bool xref:bsl/owner_equal/operator_call-0b.adoc[operator()]( xref:bsl/weak_ptr-0d.adoc[weak_ptr<ELEMENT_TYPE_X>] const& x, xref:bsl/shared_ptr-0a.adoc[shared_ptr<ELEMENT_TYPE_Y>] const& y) const noexcept; ---- [.small]#xref:bsl/owner_equal/operator_call-0b.adoc[_» more..._]# Return `true` if `x` and `y` share the same ownership representation. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class ELEMENT_TYPE_X, class ELEMENT_TYPE_Y> bool xref:bsl/owner_equal/operator_call-0e.adoc[operator()]( xref:bsl/weak_ptr-0d.adoc[weak_ptr<ELEMENT_TYPE_X>] const& x, xref:bsl/weak_ptr-0d.adoc[weak_ptr<ELEMENT_TYPE_Y>] const& y) const noexcept; ---- [.small]#xref:bsl/owner_equal/operator_call-0e.adoc[_» more..._]# == 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]#