Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support more vector<> operations with array data #28

Open
mightypenguin opened this issue Jul 4, 2017 · 0 comments
Open

Support more vector<> operations with array data #28

mightypenguin opened this issue Jul 4, 2017 · 0 comments

Comments

@mightypenguin
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant