weak_ptr::owner_before
Vrátí true Pokud weak_ptr je objednáno před (nebo menší než) poskytované ukazatel.
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 Odkaz buď shared_ptr nebo weak_ptr.
Hodnota/Návratová hodnota vlastnosti
Vrátí true Pokud weak_ptr seřazena před parametr ukazatele false Pokud není.
Poznámky
Šablona členské funkce vrátí true -li *this je ordered beforeptr.
Požadavky
Záhlaví: <memory>
Obor názvů: std