比第二个对象测试是一的对象更少。
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
要比较的其中一个对象。_Right
要比较的其中一个对象。Ty1
左指针控件的类型。Ty2
正确的指针控件的类型。
属性值/返回值
返回 _Left.get() <_Right.get().
要求
标头: <memory>
命名空间: std