In an old codebase, I found the following snippet:
for(;;){
// code that manipulates a vector 'vec'
if(vec.empty()) break;
}
Is there any purpose or convention behind using for(;;)
instead of while(true)
, except for personal taste of the respective author?