I am developing a code that needs a FIFO container. At the beginning I was using a std:queue, but because I also need to remove elements I have to use a std::deque.
Am I losing too much efficiency by replacing a 'std::queue' with a 'std::deque'?
It seems that std::queue internally use std::deque as default, probably to realize queue concept.
Though I do not test, probably basic efficiency should be the same.
Mitsuru is right. std::queue uses std::deque by default. The main reason to use std::queue is to get a cleaner queue interface with push/pop instead of push_back/pop_front.