operator> <memory>

Tests for one object being greater than a second object.

template<class Ty1, class Ty2>
    bool operator>(
        const shared_ptr<Ty1>& left,
        const shared_ptr<Ty2>& right
    );

Parameters

  • left
    One of the objects to be compared.

  • right
    One of the objects to be compared.

Property Value/Return Value

Returns left.get() > right.get().

Remarks

The template operators return left.get() > right.get().

Requirements

Header: <memory>

Namespace: std

See Also

Reference

<memory> (TR1)

shared_ptr Class

<memory> std operator>

unique_ptr Class

Other Resources

<memory> Members

unique_ptr Members