不同宿主的iterator不能进行比较

int main()
{
    string str1, str2;
    auto it1 = str1.begin(), it2 = str2.begin();
    it1 == it2;
    return 0;
}

 

 

posted @ 2019-11-03 19:22  机智的小小帅  阅读(107)  评论(0)    收藏  举报