Use pointers instead of values. Avoid corruption.

It's much cheaper to use pointers in your container, and in addition you won't corrupt the data being passed in.