From Jason Turner

[unique.ptr.runtime.modifiers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpyjq0czm0/{from.md → to.md} +13 -1
tmp/tmpyjq0czm0/{from.md → to.md} RENAMED
@@ -1,8 +1,20 @@
1
  ##### `unique_ptr` modifiers <a id="unique.ptr.runtime.modifiers">[[unique.ptr.runtime.modifiers]]</a>
2
 
3
  ``` cpp
4
- void reset(nullptr_t p) noexcept;
5
  ```
6
 
7
  *Effects:* Equivalent to `reset(pointer())`.
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ##### `unique_ptr` modifiers <a id="unique.ptr.runtime.modifiers">[[unique.ptr.runtime.modifiers]]</a>
2
 
3
  ``` cpp
4
+ void reset(nullptr_t p = nullptr) noexcept;
5
  ```
6
 
7
  *Effects:* Equivalent to `reset(pointer())`.
8
 
9
+ ``` cpp
10
+ template <class U> void reset(U p) noexcept;
11
+ ```
12
+
13
+ This function behaves the same as the `reset` member of the primary
14
+ template, except that it shall not participate in overload resolution
15
+ unless either
16
+
17
+ - `U` is the same type as `pointer`, or
18
+ - `pointer` is the same type as `element_type*`, `U` is a pointer type
19
+ `V*`, and `V(*)[]` is convertible to `element_type(*)[]`.
20
+