std::vector std::deque bounds check