如果向前运算符左侧的列表对象小于或等于正向列表右侧,的测试对象。
bool operator<=(
const forward_list <Type, Allocator>& _Left,
const forward_list <Type, Allocator>& _Right
);
参数
Parameter |
说明 |
---|---|
_Left |
forward_list 类型的对象。 |
_Right |
forward_list 类型的对象。 |
返回值
true,如果在运算符左侧的列表小于或等于列表在运算符的右侧;否则 false。
备注
此模板函数返回 !(_Right < ;Left)。
要求
标头: <forward_list>
命名空间: std