I don't understand this description.
What does the function do to the queue and/or the elements carried by its nodes ?