跳到主要内容

is_equal

判断是否和目标位置为同一个位置(相等)

声明

bool is_equal(Location other)

参数

参数名描述
other目标位置

返回值

true - 同一个位置, false - 不是同一个位置

使用方式

返回文档