Beispiel #1
0
bool Shard::isIdentical(Shard *other)
{
    if (_type != other->_type) return false;
    if (count() != other->count()) return false;
    for (Shard *mine = _first, *yours = other->_first; mine;
        mine = mine->_next, yours = yours->_next)
        if (!mine->isIdentical(yours)) return false;
    return true;
}