2684. priority_queue lacking comparator typedef

Section: 24.6.7 [priority.queue] Status: C++17 Submitter: Robert Haberlach Opened: 2016-05-02 Last modified: 2017-07-30 20:15:43 UTC

Priority: 0

View all other issues in [priority.queue].

View all issues with C++17 status.

Discussion:

The containers that take a comparison functor (set, multiset, map, and multimap) have a typedef for the comparison functor. priority_queue does not.

Proposed resolution:

Augment [priority.queue] as indicated:

 typedef Container container_type;
 typedef Compare value_compare;