I want to store a sequence of string in a queue. This seems pretty simple if i use the member function push()
push()
queue test; string s0(\"s0\"), s1(
If you wanted to do this it would typically be expressed as
test << s0 << s1 << s2 << s3;
by suitable definition of overloaded operator<< on the queue class. I don't know why this would be better than a simple series of test.push() calls though.
operator<<
test.push()