intmain(){
list<constchar*> roster1;
vector<constchar*> roster2;
roster2 ={"hello","so long","tata"};
roster1 ={"hello","so long"};auto b =// roster2 should have at least as many elements as roster1equal(roster1.cbegin(), roster1.cend(), roster2.cbegin());(b)? cout <<"true": cout <<"false";
cout << endl;return0;}
# 练习10.5- 正常比较
```cpp
intmain(){
list<constchar*> roster1;
vector<constchar*> roster2;
roster2 ={"hello","so long","tata"};
roster1 ={"hello","so long"};auto b =// roster2 should have at least as many elements as roster1equal(roster1.cbegin(), roster1.cend(), roster2.cbegin());(b)? cout <<"true": cout <<"false";
cout << endl;return0;}// ? C风格字符串constchar*a ="ab";constchar*c ="aa";
cout <<(*a==*c)<< endl;// true