4 ms·
Marking it as const will not allow you to push_back. c++ has no problem letting you maintain a reference to an element in the vector while calling push_back.
by idsout 9y ago
Marking it as const will not allow you to push_back. c++ has no problem letting you maintain a reference to an element in the vector while calling push_back.