From Jason Turner

[stack.cons.alloc]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp5wdr_tm4/{from.md → to.md} +7 -13
tmp/tmp5wdr_tm4/{from.md → to.md} RENAMED
@@ -1,45 +1,39 @@
1
  #### `stack` constructors with allocators <a id="stack.cons.alloc">[[stack.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 stack(const Alloc& a);
10
  ```
11
 
12
  *Effects:*  Initializes `c` with `a`.
13
 
14
  ``` cpp
15
- template <class Alloc>
16
- stack(const container_type& cont, const Alloc& a);
17
  ```
18
 
19
  *Effects:*  Initializes `c` with `cont` as the first argument and `a` as
20
  the second argument.
21
 
22
  ``` cpp
23
- template <class Alloc>
24
- stack(container_type&& cont, const Alloc& a);
25
  ```
26
 
27
  *Effects:*  Initializes `c` with `std::move(cont)` as the first argument
28
  and `a` as the second argument.
29
 
30
  ``` cpp
31
- template <class Alloc>
32
- stack(const stack& s, const Alloc& a);
33
  ```
34
 
35
  *Effects:*  Initializes `c` with `s.c` as the first argument and `a` as
36
  the second argument.
37
 
38
  ``` cpp
39
- template <class Alloc>
40
- stack(stack&& s, const Alloc& a);
41
  ```
42
 
43
  *Effects:*  Initializes `c` with `std::move(s.c)` as the first argument
44
  and `a` as the second argument.
45
 
 
1
  #### `stack` constructors with allocators <a id="stack.cons.alloc">[[stack.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 stack(const Alloc& a);
 
8
  ```
9
 
10
  *Effects:*  Initializes `c` with `a`.
11
 
12
  ``` cpp
13
+ template <class Alloc> stack(const container_type& cont, const Alloc& a);
 
14
  ```
15
 
16
  *Effects:*  Initializes `c` with `cont` as the first argument and `a` as
17
  the second argument.
18
 
19
  ``` cpp
20
+ template <class Alloc> stack(container_type&& cont, const Alloc& a);
 
21
  ```
22
 
23
  *Effects:*  Initializes `c` with `std::move(cont)` as the first argument
24
  and `a` as the second argument.
25
 
26
  ``` cpp
27
+ template <class Alloc> stack(const stack& s, const Alloc& a);
 
28
  ```
29
 
30
  *Effects:*  Initializes `c` with `s.c` as the first argument and `a` as
31
  the second argument.
32
 
33
  ``` cpp
34
+ template <class Alloc> stack(stack&& s, const Alloc& a);
 
35
  ```
36
 
37
  *Effects:*  Initializes `c` with `std::move(s.c)` as the first argument
38
  and `a` as the second argument.
39