operator< (<memory>)
为对象的测试小于第二个对象。
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().
要求
页眉: <内存>
命名空间: std