What is the difference between queues developed through linked list concept and STL containers? |
I do not understand the question. The C++ library offers
std::list and
std::queue so that you don't need to write them yourself.
If you're asking what's the difference in general between different kinds of containers, the answer is: how they were designed to function and store information.
For instance:
std::vector stores elements contiguously in memory, so you can use vectors in cases where you traditionally use arrays.
std::list works by chaining elements. This increases speed for inserting and removing elements, especially when compared to vectors.
std::set internally uses some kind of binary tree data structure, and this makes finding an element very fast. Additionally, it cannot hold more than one element of the same value. If you want that you'd use
std::multiset instead.
I would go on, but I have the feeling I'm wasting both my time and yours.