You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically, it's nice to be able to get the last element without having to do a size lookup every time.
rend(), rbegin(), front, back
insert, is hugely helpful if we have a need to sort members as we add them.
Currently inserting in the middle of an array requires moving all the elements after it one array index higher which can be expensive (which is what vector does for you though "list" and "forward_list" don't have that problem).
The text was updated successfully, but these errors were encountered:
Here's the full list:
http://www.cplusplus.com/reference/vector/vector/
Specifically, it's nice to be able to get the last element without having to do a size lookup every time.
rend(), rbegin(), front, back
insert, is hugely helpful if we have a need to sort members as we add them.
Currently inserting in the middle of an array requires moving all the elements after it one array index higher which can be expensive (which is what vector does for you though "list" and "forward_list" don't have that problem).
The text was updated successfully, but these errors were encountered: