30 ms·
Not sure if that's wrong, but it seems that the program would crash if you call pop() on an empty Queue? I guess it never happens in this particular program, wh
by babuskov 10y ago
Not sure if that's wrong, but it seems that the program would crash if you call pop() on an empty Queue? I guess it never happens in this particular program, which I assume was the reason to squeeze even more performance.
- alexhultman 10y agoYes it would cause undefined behavior but empty() is checked before popping.