From Jason Turner

[mem.res.monotonic.buffer.mem]

Diff to HTML by rtfpessoa

tmp/tmpmeeta_fj/{from.md → to.md} RENAMED
@@ -1,6 +1,6 @@
1
- #### `monotonic_buffer_resource` members <a id="mem.res.monotonic.buffer.mem">[[mem.res.monotonic.buffer.mem]]</a>
2
 
3
  ``` cpp
4
  void release();
5
  ```
6
 
@@ -19,14 +19,15 @@ memory_resource* upstream_resource() const;
19
 
20
  ``` cpp
21
  void* do_allocate(size_t bytes, size_t alignment) override;
22
  ```
23
 
24
- *Returns:* A pointer to allocated storage
25
- ([[basic.stc.dynamic.deallocation]]) with a size of at least `bytes`.
26
- The size and alignment of the allocated memory shall meet the
27
- requirements for a class derived from `memory_resource` ([[mem.res]]).
 
28
 
29
  *Effects:* If the unused space in `current_buffer` can fit a block with
30
  the specified `bytes` and `alignment`, then allocate the return block
31
  from `current_buffer`; otherwise set `current_buffer` to
32
  `upstream_rsrc->allocate(n, m)`, where `n` is not less than
@@ -50,8 +51,7 @@ its destruction.
50
 
51
  ``` cpp
52
  bool do_is_equal(const memory_resource& other) const noexcept override;
53
  ```
54
 
55
- *Returns:*
56
- `this == dynamic_cast<const monotonic_buffer_resource*>(&other)`.
57
 
 
1
+ #### Members <a id="mem.res.monotonic.buffer.mem">[[mem.res.monotonic.buffer.mem]]</a>
2
 
3
  ``` cpp
4
  void release();
5
  ```
6
 
 
19
 
20
  ``` cpp
21
  void* do_allocate(size_t bytes, size_t alignment) override;
22
  ```
23
 
24
+ *Returns:* A pointer to allocated
25
+ storage [[basic.stc.dynamic.allocation]] with a size of at least
26
+ `bytes`. The size and alignment of the allocated memory shall meet the
27
+ requirements for a class derived from `memory_resource`
28
+ [[mem.res.class]].
29
 
30
  *Effects:* If the unused space in `current_buffer` can fit a block with
31
  the specified `bytes` and `alignment`, then allocate the return block
32
  from `current_buffer`; otherwise set `current_buffer` to
33
  `upstream_rsrc->allocate(n, m)`, where `n` is not less than
 
51
 
52
  ``` cpp
53
  bool do_is_equal(const memory_resource& other) const noexcept override;
54
  ```
55
 
56
+ *Returns:* `this == &other`.
 
57