Sdílet prostřednictvím


operator< (<memory>)

Testy pro jeden objekt je menší než druhý objekt.

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
    );

Parametry

  • _Left
    Některé objekty, které chcete porovnat.

  • _Right
    Některé objekty, které chcete porovnat.

  • Ty1
    Typ řízena levé ukazatel.

  • Ty2
    Typ řízena ukazatel vpravo.

Hodnota/návratová hodnota vlastnosti

Vrátí_Left.get() < _Right.get().

Požadavky

Záhlaví: <paměť>

Obor názvů: std

Viz také

Referenční dokumentace

<memory>

shared_ptr – třída

unique_ptr – třída

Další zdroje

unique_ptr členů