std::distance() == 0 means that iterators are equal. No functionality change.