What type should be used to read elements in a list of strings? To write them
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:9| Question number:8
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:9| Question number:8
total answers (1)
We can use
`std::list<std::string>::const_iterator`
or`std::list<std::string>::iterator`
to read elements, and use`std::list<std::string>::iterator`
to write them.