In fact you could then even use `std::stack`, which simplifies the API a little. :-)