From Jason Turner

[mem.res.pool]

Diff to HTML by rtfpessoa

tmp/tmprym80z6u/{from.md → to.md} RENAMED
@@ -190,22 +190,22 @@ rounded to unspecified granularity.
190
 
191
  ``` cpp
192
  void* do_allocate(size_t bytes, size_t alignment) override;
193
  ```
194
 
195
- *Returns:* A pointer to allocated
196
- storage [[basic.stc.dynamic.allocation]] with a size of at least
197
- `bytes`. The size and alignment of the allocated memory shall meet the
198
- requirements for a class derived from `memory_resource`
199
- [[mem.res.class]].
200
-
201
  *Effects:* If the pool selected for a block of size `bytes` is unable to
202
  satisfy the memory request from its own internal data structures, it
203
  will call `upstream_resource()->allocate()` to obtain more memory. If
204
  `bytes` is larger than that which the largest pool can handle, then
205
  memory will be allocated using `upstream_resource()->allocate()`.
206
 
 
 
 
 
 
 
207
  *Throws:* Nothing unless `upstream_resource()->allocate()` throws.
208
 
209
  ``` cpp
210
  void do_deallocate(void* p, size_t bytes, size_t alignment) override;
211
  ```
 
190
 
191
  ``` cpp
192
  void* do_allocate(size_t bytes, size_t alignment) override;
193
  ```
194
 
 
 
 
 
 
 
195
  *Effects:* If the pool selected for a block of size `bytes` is unable to
196
  satisfy the memory request from its own internal data structures, it
197
  will call `upstream_resource()->allocate()` to obtain more memory. If
198
  `bytes` is larger than that which the largest pool can handle, then
199
  memory will be allocated using `upstream_resource()->allocate()`.
200
 
201
+ *Returns:* A pointer to allocated
202
+ storage [[basic.stc.dynamic.allocation]] with a size of at least
203
+ `bytes`. The size and alignment of the allocated memory shall meet the
204
+ requirements for a class derived from `memory_resource`
205
+ [[mem.res.class]].
206
+
207
  *Throws:* Nothing unless `upstream_resource()->allocate()` throws.
208
 
209
  ``` cpp
210
  void do_deallocate(void* p, size_t bytes, size_t alignment) override;
211
  ```