tmp/tmpuoh8cluu/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
void release();
|
| 5 |
```
|
| 6 |
|
|
@@ -30,14 +30,15 @@ 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 |
-
|
| 37 |
-
The size and alignment of the allocated memory shall meet the
|
| 38 |
-
requirements for a class derived from `memory_resource`
|
|
|
|
| 39 |
|
| 40 |
*Effects:* If the pool selected for a block of size `bytes` is unable to
|
| 41 |
satisfy the memory request from its own internal data structures, it
|
| 42 |
will call `upstream_resource()->allocate()` to obtain more memory. If
|
| 43 |
`bytes` is larger than that which the largest pool can handle, then
|
|
@@ -54,20 +55,10 @@ or under what circumstances, this operation will result in a call to
|
|
| 54 |
`upstream_resource()->deallocate()`.
|
| 55 |
|
| 56 |
*Throws:* Nothing.
|
| 57 |
|
| 58 |
``` cpp
|
| 59 |
-
bool
|
| 60 |
-
const memory_resource& other) const noexcept override;
|
| 61 |
```
|
| 62 |
|
| 63 |
-
*Returns:*
|
| 64 |
-
`this == dynamic_cast<const synchronized_pool_resource*>(&other)`.
|
| 65 |
-
|
| 66 |
-
``` cpp
|
| 67 |
-
bool unsynchronized_pool_resource::do_is_equal(
|
| 68 |
-
const memory_resource& other) const noexcept override;
|
| 69 |
-
```
|
| 70 |
-
|
| 71 |
-
*Returns:*
|
| 72 |
-
`this == dynamic_cast<const unsynchronized_pool_resource*>(&other)`.
|
| 73 |
|
|
|
|
| 1 |
+
#### Members <a id="mem.res.pool.mem">[[mem.res.pool.mem]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
void release();
|
| 5 |
```
|
| 6 |
|
|
|
|
| 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
|
|
|
|
| 55 |
`upstream_resource()->deallocate()`.
|
| 56 |
|
| 57 |
*Throws:* Nothing.
|
| 58 |
|
| 59 |
``` cpp
|
| 60 |
+
bool do_is_equal(const memory_resource& other) const noexcept override;
|
|
|
|
| 61 |
```
|
| 62 |
|
| 63 |
+
*Returns:* `this == &other`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|