다음을 통해 공유


operator>(<memory>)

Tests for one object being greater than a second object.

template<class Ty1, class Del1, class Ty2, class Del2>
    bool operator>(
        const unique_ptr<Ty1, Del1>& _Left,
        const unique_ptr<Ty2&, Del2gt;& _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 _Left.get() > _Right.get().

요구 사항

헤더 <memory>

네임스페이스: std

참고 항목

참조

<memory>

shared_ptr 클래스

unique_ptr 클래스

기타 리소스

<memory> 멤버

unique_ptr 멤버