Standard C++ Library Class Reference
Non-member Operators
template <class T, class Container, class Allocator>
 bool operator== (const queue<T, Container, Allocator>& x,
 const queue<T, Container, Allocator>& y);
Equality operator. Returns true if x is the same as y.
template <class T, class Container, class Allocator>
 bool operator< (const queue<T, Container, Allocator>& x,
 const queue<T, Container, Allocator>& y);
Returns true if the queue defined by the elements contained in x is lexicographically less
than the queue defined by the elements contained in y.
Example
//
// queue.cpp
//
 #include <queue>
 #include <string>
 #include <deque>
 #include <list>
 #include <iostream.h>
 int main(void)
 {
 // Make a queue using a list container
 queue<int, list<int>, allocator> q;
 // Push a couple of values on then pop them off 
 q.push(1);
 q.push(2);
 cout << q.front() << endl;
 q.pop();
 cout << q.front() << endl;
 q.pop();
 // Make a queue of strings using a deque container
 queue<string,deque<string>, allocator> qs;
 // Push on a few strings then pop them back off
 int i;
 for (i = 0; i < 10; i++)
 {
 qs.push(string(i+1,'a'));
 cout << qs.front() << endl;
 }
 for (i = 0; i < 10; i++)










