I
ittium
Group,
I have two containers (same type). Element are getting inserted in the
first container continuously. while second container is empty. At some
point of processing I want to swap the container so that first
container is now empty. What is the efficient container for this
operation. Swapping should involve, adjusting few pointers/parameter,
no element by element processing should take place. I will highly
appreciate a sample code.
thanks
Ittium
I have two containers (same type). Element are getting inserted in the
first container continuously. while second container is empty. At some
point of processing I want to swap the container so that first
container is now empty. What is the efficient container for this
operation. Swapping should involve, adjusting few pointers/parameter,
no element by element processing should take place. I will highly
appreciate a sample code.
thanks
Ittium