Need tutorial reference

Here's a code that I don't understand:
1
2
int myints[]={1,2,3,4}
priority_queue<int, std::vector<int>, std::greater<int> >third (myints,myints+4);

I don't understand what is happening on line 2. I'm just learning vectors and queue so I'm feeling kinda helpless. If anyone can give a link of tutorial regarding the topic that would be great...
Topic archived. No new replies allowed.