From Jason Turner

[priqueue.cons.alloc]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp7rml4jro/{from.md → to.md} +10 -13
tmp/tmp7rml4jro/{from.md → to.md} RENAMED
@@ -1,21 +1,18 @@
1
  #### `priority_queue` constructors with allocators <a id="priqueue.cons.alloc">[[priqueue.cons.alloc]]</a>
2
 
3
- If `uses_allocator<container_type, Alloc>::value` is `false` the
4
- constructors in this subclause shall not participate in overload
5
- resolution.
6
 
7
  ``` cpp
8
- template <class Alloc>
9
- explicit priority_queue(const Alloc& a);
10
  ```
11
 
12
  *Effects:*  Initializes `c` with `a` and value-initializes `comp`.
13
 
14
  ``` cpp
15
- template <class Alloc>
16
- priority_queue(const Compare& compare, const Alloc& a);
17
  ```
18
 
19
  *Effects:*  Initializes `c` with `a` and initializes `comp` with
20
  `compare`.
21
 
@@ -23,31 +20,31 @@ template <class Alloc>
23
  template <class Alloc>
24
  priority_queue(const Compare& compare, const Container& cont, const Alloc& a);
25
  ```
26
 
27
  *Effects:*  Initializes `c` with `cont` as the first argument and `a` as
28
- the second argument, and initializes `comp` with `compare`.
 
29
 
30
  ``` cpp
31
  template <class Alloc>
32
  priority_queue(const Compare& compare, Container&& cont, const Alloc& a);
33
  ```
34
 
35
  *Effects:*  Initializes `c` with `std::move(cont)` as the first argument
36
- and `a` as the second argument, and initializes `comp` with `compare`.
 
37
 
38
  ``` cpp
39
- template <class Alloc>
40
- priority_queue(const priority_queue& q, const Alloc& a);
41
  ```
42
 
43
  *Effects:*  Initializes `c` with `q.c` as the first argument and `a` as
44
  the second argument, and initializes `comp` with `q.comp`.
45
 
46
  ``` cpp
47
- template <class Alloc>
48
- priority_queue(priority_queue&& q, const Alloc& a);
49
  ```
50
 
51
  *Effects:*  Initializes `c` with `std::move(q.c)` as the first argument
52
  and `a` as the second argument, and initializes `comp` with
53
  `std::move(q.comp)`.
 
1
  #### `priority_queue` constructors with allocators <a id="priqueue.cons.alloc">[[priqueue.cons.alloc]]</a>
2
 
3
+ If `uses_allocator_v<container_type, Alloc>` is `false` the constructors
4
+ in this subclause shall not participate in overload resolution.
 
5
 
6
  ``` cpp
7
+ template <class Alloc> explicit priority_queue(const Alloc& a);
 
8
  ```
9
 
10
  *Effects:*  Initializes `c` with `a` and value-initializes `comp`.
11
 
12
  ``` cpp
13
+ template <class Alloc> priority_queue(const Compare& compare, const Alloc& a);
 
14
  ```
15
 
16
  *Effects:*  Initializes `c` with `a` and initializes `comp` with
17
  `compare`.
18
 
 
20
  template <class Alloc>
21
  priority_queue(const Compare& compare, const Container& cont, const Alloc& a);
22
  ```
23
 
24
  *Effects:*  Initializes `c` with `cont` as the first argument and `a` as
25
+ the second argument, and initializes `comp` with `compare`; calls
26
+ `make_heap(c.begin(), c.end(), comp)`.
27
 
28
  ``` cpp
29
  template <class Alloc>
30
  priority_queue(const Compare& compare, Container&& cont, const Alloc& a);
31
  ```
32
 
33
  *Effects:*  Initializes `c` with `std::move(cont)` as the first argument
34
+ and `a` as the second argument, and initializes `comp` with `compare`;
35
+ calls `make_heap(c.begin(), c.end(), comp)`.
36
 
37
  ``` cpp
38
+ template <class Alloc> priority_queue(const priority_queue& q, const Alloc& a);
 
39
  ```
40
 
41
  *Effects:*  Initializes `c` with `q.c` as the first argument and `a` as
42
  the second argument, and initializes `comp` with `q.comp`.
43
 
44
  ``` cpp
45
+ template <class Alloc> priority_queue(priority_queue&& q, const Alloc& a);
 
46
  ```
47
 
48
  *Effects:*  Initializes `c` with `std::move(q.c)` as the first argument
49
  and `a` as the second argument, and initializes `comp` with
50
  `std::move(q.comp)`.