tmp/tmpv_fqjeex/{from.md → to.md}
RENAMED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
### Temporary buffers <a id="temporary.buffer">[[temporary.buffer]]</a>
|
| 2 |
-
|
| 3 |
-
``` cpp
|
| 4 |
-
template <class T>
|
| 5 |
-
pair<T*, ptrdiff_t> get_temporary_buffer(ptrdiff_t n) noexcept;
|
| 6 |
-
```
|
| 7 |
-
|
| 8 |
-
*Effects:* Obtains a pointer to storage sufficient to store up to `n`
|
| 9 |
-
adjacent `T` objects. It is *implementation-defined* whether
|
| 10 |
-
over-aligned types are supported ([[basic.align]]).
|
| 11 |
-
|
| 12 |
-
*Returns:* A `pair` containing the buffer’s address and capacity (in the
|
| 13 |
-
units of `sizeof(T)`), or a pair of 0 values if no storage can be
|
| 14 |
-
obtained or if `n <= 0`.
|
| 15 |
-
|
| 16 |
-
``` cpp
|
| 17 |
-
template <class T> void return_temporary_buffer(T* p);
|
| 18 |
-
```
|
| 19 |
-
|
| 20 |
-
*Effects:* Deallocates the buffer to which `p` points.
|
| 21 |
-
|
| 22 |
-
*Requires:* The buffer shall have been previously allocated by
|
| 23 |
-
`get_temporary_buffer`.
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|