1. I can understand iterator will be invalid. But, why reference to deque will be invalid?
Originally Posted by CornedBee
For example, suppose you have,
what operation on qi will make the reference rqi invalid?
deque<int>& rqi = qi;
I am interested in "invalidation rules". But MSDN does not contain much information about it for each API about what will be made invalid after invoking the API. Do you have recommended online documents for that to make quick reference?