Hello

I have:

Code:
std::list<std::string> _list;
std::list<std::string>::iterator it = _list.begin();
How can I write this in one line:
Code:
++it;
if (it == list.end()) { it = list.begin(); }
something like:

Code:
it = (it == list.end()) ? list.begin() : ++it;
will make it crash when it comes to the end of list..

Thanks for help