tmp/tmpouzsiegd/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### `destroy` <a id="specialized.destroy">[[specialized.destroy]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
template <class T>
|
| 5 |
+
void destroy_at(T* location);
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
*Effects:* Equivalent to:
|
| 9 |
+
|
| 10 |
+
``` cpp
|
| 11 |
+
location->~T();
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
``` cpp
|
| 15 |
+
template <class ForwardIterator>
|
| 16 |
+
void destroy(ForwardIterator first, ForwardIterator last);
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
*Effects:* Equivalent to:
|
| 20 |
+
|
| 21 |
+
``` cpp
|
| 22 |
+
for (; first!=last; ++first)
|
| 23 |
+
destroy_at(addressof(*first));
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
``` cpp
|
| 27 |
+
template <class ForwardIterator, class Size>
|
| 28 |
+
ForwardIterator destroy_n(ForwardIterator first, Size n);
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
*Effects:* Equivalent to:
|
| 32 |
+
|
| 33 |
+
``` cpp
|
| 34 |
+
for (; n > 0; (void)++first, --n)
|
| 35 |
+
destroy_at(addressof(*first));
|
| 36 |
+
return first;
|
| 37 |
+
```
|
| 38 |
+
|