Hello
I have:
How can I write this in one line:Code:std::list<std::string> _list; std::list<std::string>::iterator it = _list.begin();
something like:Code:++it; if (it == list.end()) { it = list.begin(); }
will make it crash when it comes to the end of list..Code:it = (it == list.end()) ? list.begin() : ++it;
Thanks for help