I would like to know if it's possible to recreate the logic of deque using this library.
My main issue is the non growable constraint: the allocated memory is fixed.
The main elements needed are a pointer to an already allocated non growable range of memory given by the user, a pointer to the beginning of the range (which can differ from the actual beginning of the range), and same thing for the end.
Inserting an element should never go beyond the allocated memory or it should throw or return false;
At the core level, it is basically inserting, removing and updating pointers, but unsure how to deal with the fixed size constraint.
Hello,
I would like to know if it's possible to recreate the logic of deque using this library.
My main issue is the non growable constraint: the allocated memory is fixed.
The main elements needed are a pointer to an already allocated non growable range of memory given by the user, a pointer to the beginning of the range (which can differ from the actual beginning of the range), and same thing for the end.
Inserting an element should never go beyond the allocated memory or it should throw or return false;
At the core level, it is basically inserting, removing and updating pointers, but unsure how to deal with the fixed size constraint.
Thanks