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
正确的共享指针控制的类型。
属性值/返回值
返回 true,如果 _Left 小于或等于 _Right和 false,则不是。
备注
模板运算符返回 _Left.get() <= _Right.get()
要求
页眉: <内存>
命名空间: std