Condividi tramite


shared_ptr::owner_before

Restituisce true se questo shared_ptr viene ordinato prima (o minore di) del puntatore fornito.

template<class Other>
    bool owner_before(const shared_ptr<Other>& ptr);
template<class Other>
    bool owner_before(const weak_ptr<Other>& ptr);

Parametri

  • ptr
    Un riferimento lvalue a shared_ptr o a weak_ptr.

Valore proprietà/Valore restituito

Restituisce true se si ordina shared_ptr prima del parametro del puntatore, false se non.

Note

La funzione membro di un modello restituisce true se *this è ordered beforeptr.

Requisiti

intestazione: <memory>

Spazio dei nomi: deviazione standard

Vedere anche

Riferimenti

shared_ptr::owner_before