Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns true if this weak_ptr is ordered before (or less than) the provided pointer.
template<class Other>
bool owner_before(const shared_ptr<Other>& ptr);
template<class Other>
bool owner_before(const weak_ptr<Other>& ptr);
Parameters
- ptr
An lvalue reference to either a shared_ptr or a weak_ptr.
Property Value/Return Value
Returns true if this weak_ptr sorts before the pointer parameter, false if not.
Remarks
The template member function returns true if *this is ordered beforeptr.
Requirements
Header: <memory>
Namespace: std