Feel free to copy/modify. To be in stdlib, I think at least there have to be more tests and I am sure there are improvements after code review. Btw, I don't understand why you want a no-reallocation data structure? It seems a niche use case to me.
Feel free to copy/modify. To be in stdlib, I think at least there have to be more tests and I am sure there are improvements after code review. Btw, I don't understand why you want a no-reallocation data structure? It seems a niche use case to me.