История изменений
Исправление Manhunt, (текущая версия) :
Это не свойство push_back, а свойство аллокатора.
Обоснуй. Вот тебе для затравки:
23.2.4.3 - vector modifiers
void push_back(const T& x);
void push_back(T&& x);
.....
-3- Remarks: Causes reallocation if the new size is greater than the old capacity. If no reallocation happens, all the iterators and references before the insertion point remain valid.
Жду от тебя сслыку на Стандарт, где указано, что в зависимости от свойств аллокатора «all the iterators and references before the insertion point remain valid» даже если «reallocation happens».
Исходная версия Manhunt, :
Это не свойство push_back, а свойство аллокатора.
Обоснуй. Вот тебе для затравки:
23.2.4.3 - vector modifiers
void push_back(const T& x);
void push_back(T&& x);
.....
-3- Remarks: Causes reallocation if the new size is greater than the old capacity. If no reallocation happens, all the iterators and references before the insertion point remain valid.
Жду от тебя сслыку на Сандарт, где указано, что в зависимости от свойств аллокатора «all the iterators and references before the insertion point remain valid» даже если «reallocation happens».