如果向前运算符左侧的列表对象与向前相等列表右侧,的测试对象。
bool operator==(
const forward_list <Type, Allocator>& _Left,
const forward_list <Type, Allocator>& _Right
);
参数
Parameter |
说明 |
---|---|
_Left |
forward_list 类型的对象。 |
_Right |
forward_list 类型的对象。 |
备注
此模板函数重载 operator== 比较模板选件类 forward_list两个对象。函数返回 distance(_Left.begin(), end()) == distance(_Right.begin(),_Right.end()) && equal(_Left. begin(),_Left. end(),_Right.begin())。
要求
标头: <forward_list>
命名空间: std