As you noted, push and pop are common names for stack operations. The reason for this, not just push and pop is that it can be compatible with other containers. std::vector only implements push_back and pop_back , but there is, for example, push_front and pop_front , for example, std::list . Having consistent names is useful when writing common functions.
source share