-
Notifications
You must be signed in to change notification settings - Fork 11
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
Kernel Vector Library #295
Comments
So this vector will not allow for growing and shrinking like the standard library one does? |
Ideally it would, yes. Maybe there should be a base class that a dynamic and a static variation could both inherit? |
That would be the "proper" OOP way to do that, but I get the feeling that it would be much more performant to have completely separate implementations that just so happen to have the same API. We'll have to experiment and see what's best. |
What if it was the difference between an Array class and a Vector class? Array uses statically sized arrays and Vector used a dynamically allocated array so that it can be resized. |
That sounds good in theory. I guess we'll have to play around with implementation and see how it fits. |
Closing this issue as it's being rolled into #378 ( |
The kernel should have a vector library similar to that of the C++ standard library's
vector
. It should be templated likeLinkedList
and should accept a maximum size so that it can be statically allocated.The text was updated successfully, but these errors were encountered: