On 2016-07-01, Thiago Macieira <[email protected]> wrote: > confusing because the next line has "isEmpty". When I read this code, I had > to > wonder if that "empty" was a verb in the imperative, meaning the author was > trying to remove all elements from the container.
Hah. I found some code in a large project the other day. The code is a monstrosity of stl, mfc and qt code. There was an empty() function. It returned void. and was not const. Yes. it was clearing its internal collections and states. /Sune _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
