What is the purpose of the 'std::priority_queue' container in C++ STL?
A. To store elements in a sorted sequence with constant-time access to the largest element
B. To store elements in a sorted sequence with constant-time access to the smallest element
C. To store elements in a stack with constant-time access to the largest element
D. To store elements in a queue with constant-time access to the largest element
Answer: Option C

Join The Discussion