3 ms·
Well 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 contai
by TMK 15y ago
Well 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.