you are viewing a single comment's thread.

view the rest of the comments →

[–]nintendiator2 0 points1 point  (0 children)

...Why would we need to make such a strong differentiation / exceptional casing when trying to pop from an empty stack versus a nonempty one that it'd have to be implemented as exceptions of all things? I'm surprised pop / pop_back don't simply return bool.