From Jason Turner

[allocator.adaptor.cnstr]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmparrfkz9_/{from.md → to.md} +12 -16
tmp/tmparrfkz9_/{from.md → to.md} RENAMED
@@ -1,28 +1,26 @@
1
- ### Scoped allocator adaptor constructors <a id="allocator.adaptor.cnstr">[[allocator.adaptor.cnstr]]</a>
2
 
3
  ``` cpp
4
  scoped_allocator_adaptor();
5
  ```
6
 
7
  *Effects:* Value-initializes the `OuterAlloc` base class and the `inner`
8
  allocator object.
9
 
10
  ``` cpp
11
  template<class OuterA2>
12
- scoped_allocator_adaptor(OuterA2&& outerAlloc,
13
- const InnerAllocs&... innerAllocs) noexcept;
14
  ```
15
 
 
 
16
  *Effects:* Initializes the `OuterAlloc` base class with
17
  `std::forward<OuterA2>(outerAlloc)` and `inner` with `innerAllocs...`
18
  (hence recursively initializing each allocator within the adaptor with
19
  the corresponding allocator from the argument list).
20
 
21
- *Remarks:* This constructor shall not participate in overload resolution
22
- unless `is_constructible_v<OuterAlloc, OuterA2>` is `true`.
23
-
24
  ``` cpp
25
  scoped_allocator_adaptor(const scoped_allocator_adaptor& other) noexcept;
26
  ```
27
 
28
  *Effects:* Initializes each allocator within the adaptor with the
@@ -35,27 +33,25 @@ scoped_allocator_adaptor(scoped_allocator_adaptor&& other) noexcept;
35
  *Effects:* Move constructs each allocator within the adaptor with the
36
  corresponding allocator from `other`.
37
 
38
  ``` cpp
39
  template<class OuterA2>
40
- scoped_allocator_adaptor(const scoped_allocator_adaptor<OuterA2,
41
- InnerAllocs...>& other) noexcept;
42
  ```
43
 
 
 
 
44
  *Effects:* Initializes each allocator within the adaptor with the
45
  corresponding allocator from `other`.
46
 
47
- *Remarks:* This constructor shall not participate in overload resolution
48
- unless `is_constructible_v<OuterAlloc, const OuterA2&>` is `true`.
49
-
50
  ``` cpp
51
  template<class OuterA2>
52
- scoped_allocator_adaptor(scoped_allocator_adaptor<OuterA2,
53
- InnerAllocs...>&& other) noexcept;
54
  ```
55
 
 
 
56
  *Effects:* Initializes each allocator within the adaptor with the
57
  corresponding allocator rvalue from `other`.
58
 
59
- *Remarks:* This constructor shall not participate in overload resolution
60
- unless `is_constructible_v<OuterAlloc, OuterA2>` is `true`.
61
-
 
1
+ ### Constructors <a id="allocator.adaptor.cnstr">[[allocator.adaptor.cnstr]]</a>
2
 
3
  ``` cpp
4
  scoped_allocator_adaptor();
5
  ```
6
 
7
  *Effects:* Value-initializes the `OuterAlloc` base class and the `inner`
8
  allocator object.
9
 
10
  ``` cpp
11
  template<class OuterA2>
12
+ scoped_allocator_adaptor(OuterA2&& outerAlloc, const InnerAllocs&... innerAllocs) noexcept;
 
13
  ```
14
 
15
+ *Constraints:* `is_constructible_v<OuterAlloc, OuterA2>` is `true`.
16
+
17
  *Effects:* Initializes the `OuterAlloc` base class with
18
  `std::forward<OuterA2>(outerAlloc)` and `inner` with `innerAllocs...`
19
  (hence recursively initializing each allocator within the adaptor with
20
  the corresponding allocator from the argument list).
21
 
 
 
 
22
  ``` cpp
23
  scoped_allocator_adaptor(const scoped_allocator_adaptor& other) noexcept;
24
  ```
25
 
26
  *Effects:* Initializes each allocator within the adaptor with the
 
33
  *Effects:* Move constructs each allocator within the adaptor with the
34
  corresponding allocator from `other`.
35
 
36
  ``` cpp
37
  template<class OuterA2>
38
+ scoped_allocator_adaptor(
39
+ const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& other) noexcept;
40
  ```
41
 
42
+ *Constraints:* `is_constructible_v<OuterAlloc, const OuterA2&>` is
43
+ `true`.
44
+
45
  *Effects:* Initializes each allocator within the adaptor with the
46
  corresponding allocator from `other`.
47
 
 
 
 
48
  ``` cpp
49
  template<class OuterA2>
50
+ scoped_allocator_adaptor(scoped_allocator_adaptor<OuterA2, InnerAllocs...>&& other) noexcept;
 
51
  ```
52
 
53
+ *Constraints:* `is_constructible_v<OuterAlloc, OuterA2>` is `true`.
54
+
55
  *Effects:* Initializes each allocator within the adaptor with the
56
  corresponding allocator rvalue from `other`.
57