3 ms·Yes it would cause undefined behavior but empty() is checked before popping.by alexhultman 10y agoYes it would cause undefined behavior but empty() is checked before popping.