In: Computer Science
1) The STL stack is considered a container adapter.
a) What does that mean?
b) When an element is added to a queue, where is it added?
c) When an element is removed from a queue, where is it removed
from?
d) What is the relationship between adapters and decorators?
1) The STL stack is considered a container adapter.
a) What does that mean?
Answer: takes existing container and implements a new interface on top of it to adapt it to a different use
b) When an element is added to a queue, where is it added?
Answer: to the rear
c) When an element is removed from a queue, where is it removed
from?
Answer: from the front
The above answers are 100% correct.
Not sure about last part.