Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly use std::deque for the missing node handler stack:
We need to ensure that pointers and/or references to existing elements will not be invalidated during the course of element insertion and removal. Containers like std::vector do not offer this guarantee, and cannot be used as the underlying container for the stack. By choosing to explicitly specify std::deque as the underlying cotnainer, we avoid: - the unlikely possibility of the C++ standards committee changing the default template parameter to a container; - the more likely possibility of an accidental change by a programmer, without fully considering the consequences.
- Loading branch information