[#bsl-shared_ptr-0a-owner_before-02]
= xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr]::owner&lowbar;before
:relfileprefix: ../../
:mrdocs:

Return whether this `shared&lowbar;ptr` precedes `other` in owner order&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ANY&lowbar;TYPE&gt;
bool
owner&lowbar;before(xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr&lt;ANY&lowbar;TYPE&gt;] const& other) const noexcept;
----

== Description

Return `true` if the address of the `BloombergLP&colon;&colon;bslma&colon;&colon;SharedPtrRep` object used by this shared pointer is ordered before the address of the `BloombergLP&colon;&colon;bslma&colon;&colon;SharedPtrRep` object used by the specified `other` shared pointer under the total ordering defined by `std&colon;&colon;less&lt;BloombergLP&colon;&colon;bslma&colon;&colon;SharedPtrRep &ast;&gt;`, and `false` otherwise&period;

== Return Value

`true` if this pointer&apos;s ownership identity precedes `other`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| other pointer to compare or share ownership with
|===


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