3 ms·
Currently I'm working on C++ container, because I hate the standard containers.
by TMK 15y ago
Currently I'm working on C++ container, because I hate the standard containers.
- alexholehouse 15y agoThat sounds fun - what kind of things are you going for, and what approach are you thinking of taking?
- TMK 15y agoWell first I wrote stack, queue and vector templates, but realized I can as easily write all of the functions as one template. Did that. Now I can use my container anyway I want and it can be safely iterated while deleting nodes. Though only problem I tried to overload operator= when character pointer is given to check how many characters in the data is and push them to the container automatically like you can do with std::string, but for some reason it gives me some ugly memory leaks, even though pushing normally works fine.