shared_ptr::owner_before
Zwraca wartość true, jeśli ten shared_ptr był zamówiony przed (lub mniej niż) podany wskaźnik.
template<class Other>
bool owner_before(const shared_ptr<Other>& ptr);
template<class Other>
bool owner_before(const weak_ptr<Other>& ptr);
Parametry
- ptr
lvalue Odwołanie do jednej shared_ptr lub weak_ptr.
Wartość właściwości/Zwracana wartość
Zwraca wartość true, jeśli ten shared_ptr sortuje przed parametr wskaźnika, wartość false, jeśli nie.
Uwagi
Szablon funkcji członka zwraca wartość true, jeśli *this jest ordered beforeptr.
Wymagania
Nagłówek: <pamięć>
Przestrzeń nazw: std