priority_queue

hi all,
i can not understand this line of code... :( can some on explain it what does it do?
1
2
3
std::priority_queue< std::pair< std::vector< ActionStatePair >, double >,
        std::vector< std::pair< std::vector< ActionStatePair >, double > >,
        ChainComparator > queue;
It creates a priority queue called "queue" where each element is a pair holding a vector of action state pairs and a double. It also uses a custom comparison functor "ChainComparator". You can read about priority queues at http://www.cplusplus.com/reference/queue/priority_queue/?kw=priority_queue or at http://en.cppreference.com/w/cpp/container/priority_queue
Topic archived. No new replies allowed.