Either you or I are mis-reading Shift, Pop, Unshift and Push with Impunity! because as in the snippet quoted it simply mentions reallocation and not leakage. Do you have an SSCCE which actually demonstrates leakage? If not, I wouldn't worry about it.
🦛
In reply to Re: How to implement a Queue that doesn't leak memory?
by hippo
in thread How to implement a Queue that doesn't leak memory?
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |