For example, how to implement the following function without any other information?
bool isEnd(set<int> :: iterator itr);
I know I can do it like this, but how to do it without input variable "s"?
bool isEnd(const set<int> &s, set<int> :: iterator itr) {
return itr == s.end();
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…