判断本补维规则对象与另一个对象是否一致。
1 | bool operator==(const ExpandDimsType &other) const |
参数 |
输入/输出 |
说明 |
|---|---|---|
other |
输入 |
另一个补维规则对象。 |
true表示一致,false表示不一致。
无。
1 2 3 | ExpandDimsType type1("1001"); ExpandDimsType type2("1001"); bool is_same_type = type1 == type2; // true |