bsl::owner_less<void>::operator()

Return true if the ownership of a is ordered before that of b.

Synopses

Declared in <bslstl_ownerless.h>

Return true if the ownership of a is ordered before that of b.

template<
    class ELEMENT_TYPE_A,
    class ELEMENT_TYPE_B>
bool
operator()(
    shared_ptr<ELEMENT_TYPE_A> const& a,
    shared_ptr<ELEMENT_TYPE_B> const& b) const noexcept;
» more...

Return true if the ownership of a is ordered before that of b.

template<
    class ELEMENT_TYPE_A,
    class ELEMENT_TYPE_B>
bool
operator()(
    shared_ptr<ELEMENT_TYPE_A> const& a,
    weak_ptr<ELEMENT_TYPE_B> const& b) const noexcept;
» more...

Return true if the ownership of a is ordered before that of b.

template<
    class ELEMENT_TYPE_A,
    class ELEMENT_TYPE_B>
bool
operator()(
    weak_ptr<ELEMENT_TYPE_A> const& a,
    shared_ptr<ELEMENT_TYPE_B> const& b) const noexcept;
» more...

Return true if the ownership of a is ordered before that of b.

template<
    class ELEMENT_TYPE_A,
    class ELEMENT_TYPE_B>
bool
operator()(
    weak_ptr<ELEMENT_TYPE_A> const& a,
    weak_ptr<ELEMENT_TYPE_B> const& b) const noexcept;
» more...

Return Value

true if the ownership of a is ordered before that of b, otherwise false

Parameters

NameDescription
afirst smart pointer to compare by ownership
bsecond smart pointer to compare by ownership