operator>= (<memory>)

Tests for one object being greater than or equal to a second object.

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

参数

  • _Left
    One of the objects to be compared.

  • _Right
    One of the objects to be compared.

  • Ty1
    The type controlled by the left shared pointer.

  • Ty2
    The type controlled by the right shared pointer.

属性值/返回值

Returns true if _Left is greater than or equal to _Right, and false if it is not.

备注

模板运算符返回 _Left.get() >=_Right.get()。

要求

Header: <memory>

Namespace: std

请参见

参考

<memory>

shared_ptr Class

unique_ptr Class

其他资源

memory 成员

unique_ptr 成员