Just encountered decrement of end() iterator in my company source codes and it looks strange for me. As far as I remember this was working on some platforms, bu
end()
This code is not OK, in case list is empty you are in trouble.
So check for that, if list is not empty the code is very fine.