@@ -10120,12 +10120,14 @@
10120
10120
explicit priority_queue(const Compare& x) : priority_queue(x, Container()) {}
10121
10121
priority_queue(const Compare& x, const Container&);
10122
10122
priority_queue(const Compare& x, Container&&);
10123
+ template<class InputIterator>
10124
+ priority_queue(InputIterator first, InputIterator last, const Compare& x = Compare());
10123
10125
template<class InputIterator>
10124
10126
priority_queue(InputIterator first, InputIterator last, const Compare& x,
10125
10127
const Container&);
10126
10128
template<class InputIterator>
10127
- priority_queue(InputIterator first, InputIterator last,
10128
- const Compare& x = Compare(), Container&& = Container() );
10129
+ priority_queue(InputIterator first, InputIterator last, const Compare& x,
10130
+ Container&&);
10129
10131
template<class Alloc> explicit priority_queue(const Alloc&);
10130
10132
template<class Alloc> priority_queue(const Compare&, const Alloc&);
10131
10133
template<class Alloc> priority_queue(const Compare&, const Container&, const Alloc&);
@@ -10215,13 +10217,32 @@
10215
10217
\tcode {make_heap(c.begin(), c.end(), comp)}.
10216
10218
\end {itemdescr }
10217
10219
10220
+ \indexlibraryctor {priority_queue}%
10221
+ \begin {itemdecl }
10222
+ template<class InputIterator>
10223
+ priority_queue(InputIterator first, InputIterator last, const Compare& x = Compare());
10224
+ \end {itemdecl }
10225
+
10226
+ \begin {itemdescr }
10227
+ \pnum
10228
+ \expects
10229
+ \tcode {x} defines a strict weak ordering\iref {alg.sorting }.
10230
+
10231
+ \pnum
10232
+ \effects
10233
+ Initializes \tcode {c} with
10234
+ \tcode {first} as the first argument and
10235
+ \tcode {last} as the second argument, and
10236
+ initializes \tcode {comp} with \tcode {x};
10237
+ then calls \tcode {make_heap(c.begin(), c.end(), comp)}.
10238
+ \end {itemdescr }
10239
+
10218
10240
\indexlibraryctor {priority_queue}%
10219
10241
\begin {itemdecl }
10220
10242
template<class InputIterator>
10221
10243
priority_queue(InputIterator first, InputIterator last, const Compare& x, const Container& y);
10222
10244
template<class InputIterator>
10223
- priority_queue(InputIterator first, InputIterator last, const Compare& x = Compare(),
10224
- Container&& y = Container());
10245
+ priority_queue(InputIterator first, InputIterator last, const Compare& x, Container&& y);
10225
10246
\end {itemdecl }
10226
10247
10227
10248
\begin {itemdescr }
0 commit comments