boost::openmethod::weak_virtual_ptr::owner_before
Compare owners with a weak_virtual_ptr
Synopsis
Declared in <boost/openmethod/interop/std_weak_ptr.hpp>
template<class Other>
bool
owner_before(weak_virtual_ptr<Other, Registry> const& other) const noexcept;
Description
Provide the owner‐based ordering that an associative container keyed on weak_virtual_ptr needs. Note that std::owner_less<void> accepts std::shared_ptr and std::weak_ptr alone in some implementations, so the comparator is best written as a function object calling owner_before.
Return Value
The result of std::weak_ptr::owner_before applied to the std::weak_ptr held by other.
Parameters
Name |
Description |
other |
A |
Created with MrDocs