Condividi tramite


operator<= (<memory>)

Test per un oggetto che è minore o uguale a un secondo oggetto.

template<class Type1, class Del1, class Type2, class Del2>
    bool operator<=(
        const unique_ptr<Type1, Del1>& _Left,
        const unique_ptr<Type2&, Del2>& _Right
    );
template<class Ty1, class Ty2>
    bool operator<=(
        const shared_ptr<Ty1>& _Left,
        const shared_ptr<Ty2>& _Right
);

Parametri

  • _Left
    Uno degli oggetti da confrontare.

  • _Right
    Uno degli oggetti da confrontare.

  • Ty1
    Il tipo esaminato il lato sinistro è condiviso il puntatore.

  • Ty2
    Il tipo esaminato il puntatore condiviso a destra.

Valore proprietà/Valore restituito

Restituisce true se _Left è minore o uguale a _Righte false se non è.

Note

Gli operatori del modello restituiscono _Left.get() <=_Right.get()

Requisiti

intestazione: <memoria>

Spazio dei nomi: deviazione standard

Vedere anche

Riferimenti

<memory>

shared_ptr Class

unique_ptr Class

Altre risorse

<memoria> membri

membri di unique_ptr