-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Create CRTP LinkedList and Node #898
Comments
That looks like an interesting concept |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried searching the documentation and couldn't find anything. I've created a CRTP-based LinkedList and Node that might be useful for this project.
It allows you to also have dynamic storage while not using the heap. I've created classes that inherit the Node and utilize RAII to add itself and remove itself from the linked list or a class that implements the linked list. Some places this could be used for is if you have a lot of similar objects. Example: You could have a
TimerManager : LinkedList<TimerManager>
and it handles tickingTimer : Node<Timer>.
The Timer could utilize RAII by adding itself to the TimerManager and could remove itself upon destruction.The text was updated successfully, but these errors were encountered: