From Jason Turner

[priqueue.cons]

Diff to HTML by rtfpessoa

tmp/tmp2777honz/{from.md → to.md} RENAMED
@@ -1,34 +1,36 @@
1
  #### Constructors <a id="priqueue.cons">[[priqueue.cons]]</a>
2
 
3
  ``` cpp
4
- priority_queue(const Compare& x, const Container& y);
5
- priority_queue(const Compare& x, Container&& y);
6
  ```
7
 
8
  *Preconditions:* `x` defines a strict weak ordering [[alg.sorting]].
9
 
10
  *Effects:* Initializes `comp` with `x` and `c` with `y` (copy
11
  constructing or move constructing as appropriate); calls
12
  `make_heap(c.begin(), c.end(), comp)`.
13
 
14
  ``` cpp
15
  template<class InputIterator>
16
- priority_queue(InputIterator first, InputIterator last, const Compare& x = Compare());
17
  ```
18
 
19
  *Preconditions:* `x` defines a strict weak ordering [[alg.sorting]].
20
 
21
  *Effects:* Initializes `c` with `first` as the first argument and `last`
22
  as the second argument, and initializes `comp` with `x`; then calls
23
  `make_heap(c.begin(), c.end(), comp)`.
24
 
25
  ``` cpp
26
  template<class InputIterator>
27
- priority_queue(InputIterator first, InputIterator last, const Compare& x, const Container& y);
 
28
  template<class InputIterator>
29
- priority_queue(InputIterator first, InputIterator last, const Compare& x, Container&& y);
 
30
  ```
31
 
32
  *Preconditions:* `x` defines a strict weak ordering [[alg.sorting]].
33
 
34
  *Effects:* Initializes `comp` with `x` and `c` with `y` (copy
@@ -36,11 +38,11 @@ constructing or move constructing as appropriate); calls
36
  `c.insert(c.end(), first, last)`; and finally calls
37
  `make_heap(c.begin(), c.end(), comp)`.
38
 
39
  ``` cpp
40
  template<container-compatible-range<T> R>
41
- priority_queue(from_range_t, R&& rg, const Compare& x = Compare());
42
  ```
43
 
44
  *Preconditions:* `x` defines a strict weak ordering [[alg.sorting]].
45
 
46
  *Effects:* Initializes `comp` with `x` and `c` with
 
1
  #### Constructors <a id="priqueue.cons">[[priqueue.cons]]</a>
2
 
3
  ``` cpp
4
+ constexpr priority_queue(const Compare& x, const Container& y);
5
+ constexpr priority_queue(const Compare& x, Container&& y);
6
  ```
7
 
8
  *Preconditions:* `x` defines a strict weak ordering [[alg.sorting]].
9
 
10
  *Effects:* Initializes `comp` with `x` and `c` with `y` (copy
11
  constructing or move constructing as appropriate); calls
12
  `make_heap(c.begin(), c.end(), comp)`.
13
 
14
  ``` cpp
15
  template<class InputIterator>
16
+ constexpr priority_queue(InputIterator first, InputIterator last, const Compare& x = Compare());
17
  ```
18
 
19
  *Preconditions:* `x` defines a strict weak ordering [[alg.sorting]].
20
 
21
  *Effects:* Initializes `c` with `first` as the first argument and `last`
22
  as the second argument, and initializes `comp` with `x`; then calls
23
  `make_heap(c.begin(), c.end(), comp)`.
24
 
25
  ``` cpp
26
  template<class InputIterator>
27
+ constexpr priority_queue(InputIterator first, InputIterator last, const Compare& x,
28
+ const Container& y);
29
  template<class InputIterator>
30
+ constexpr priority_queue(InputIterator first, InputIterator last, const Compare& x,
31
+ Container&& y);
32
  ```
33
 
34
  *Preconditions:* `x` defines a strict weak ordering [[alg.sorting]].
35
 
36
  *Effects:* Initializes `comp` with `x` and `c` with `y` (copy
 
38
  `c.insert(c.end(), first, last)`; and finally calls
39
  `make_heap(c.begin(), c.end(), comp)`.
40
 
41
  ``` cpp
42
  template<container-compatible-range<T> R>
43
+ constexpr priority_queue(from_range_t, R&& rg, const Compare& x = Compare());
44
  ```
45
 
46
  *Preconditions:* `x` defines a strict weak ordering [[alg.sorting]].
47
 
48
  *Effects:* Initializes `comp` with `x` and `c` with