tmp/tmpbno3xh6m/{from.md → to.md}
RENAMED
|
@@ -30,22 +30,22 @@ rounded to unspecified granularity.
|
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
void* do_allocate(size_t bytes, size_t alignment) override;
|
| 33 |
```
|
| 34 |
|
| 35 |
-
*Returns:* A pointer to allocated
|
| 36 |
-
storage [[basic.stc.dynamic.allocation]] with a size of at least
|
| 37 |
-
`bytes`. The size and alignment of the allocated memory shall meet the
|
| 38 |
-
requirements for a class derived from `memory_resource`
|
| 39 |
-
[[mem.res.class]].
|
| 40 |
-
|
| 41 |
*Effects:* If the pool selected for a block of size `bytes` is unable to
|
| 42 |
satisfy the memory request from its own internal data structures, it
|
| 43 |
will call `upstream_resource()->allocate()` to obtain more memory. If
|
| 44 |
`bytes` is larger than that which the largest pool can handle, then
|
| 45 |
memory will be allocated using `upstream_resource()->allocate()`.
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
*Throws:* Nothing unless `upstream_resource()->allocate()` throws.
|
| 48 |
|
| 49 |
``` cpp
|
| 50 |
void do_deallocate(void* p, size_t bytes, size_t alignment) override;
|
| 51 |
```
|
|
|
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
void* do_allocate(size_t bytes, size_t alignment) override;
|
| 33 |
```
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*Effects:* If the pool selected for a block of size `bytes` is unable to
|
| 36 |
satisfy the memory request from its own internal data structures, it
|
| 37 |
will call `upstream_resource()->allocate()` to obtain more memory. If
|
| 38 |
`bytes` is larger than that which the largest pool can handle, then
|
| 39 |
memory will be allocated using `upstream_resource()->allocate()`.
|
| 40 |
|
| 41 |
+
*Returns:* A pointer to allocated
|
| 42 |
+
storage [[basic.stc.dynamic.allocation]] with a size of at least
|
| 43 |
+
`bytes`. The size and alignment of the allocated memory shall meet the
|
| 44 |
+
requirements for a class derived from `memory_resource`
|
| 45 |
+
[[mem.res.class]].
|
| 46 |
+
|
| 47 |
*Throws:* Nothing unless `upstream_resource()->allocate()` throws.
|
| 48 |
|
| 49 |
``` cpp
|
| 50 |
void do_deallocate(void* p, size_t bytes, size_t alignment) override;
|
| 51 |
```
|