From Jason Turner

[mem.res.public]

Diff to HTML by rtfpessoa

tmp/tmphdiasqxb/{from.md → to.md} RENAMED
@@ -1,24 +1,24 @@
1
- #### `memory_resource` public member functions <a id="mem.res.public">[[mem.res.public]]</a>
2
 
3
  ``` cpp
4
  ~memory_resource();
5
  ```
6
 
7
  *Effects:* Destroys this `memory_resource`.
8
 
9
  ``` cpp
10
- void* allocate(size_t bytes, size_t alignment = max_align);
11
  ```
12
 
13
  *Effects:* Equivalent to: `return do_allocate(bytes, alignment);`
14
 
15
  ``` cpp
16
  void deallocate(void* p, size_t bytes, size_t alignment = max_align);
17
  ```
18
 
19
- *Effects:* Equivalent to: `do_deallocate(p, bytes, alignment);`
20
 
21
  ``` cpp
22
  bool is_equal(const memory_resource& other) const noexcept;
23
  ```
24
 
 
1
+ #### Public member functions <a id="mem.res.public">[[mem.res.public]]</a>
2
 
3
  ``` cpp
4
  ~memory_resource();
5
  ```
6
 
7
  *Effects:* Destroys this `memory_resource`.
8
 
9
  ``` cpp
10
+ [[nodiscard]] void* allocate(size_t bytes, size_t alignment = max_align);
11
  ```
12
 
13
  *Effects:* Equivalent to: `return do_allocate(bytes, alignment);`
14
 
15
  ``` cpp
16
  void deallocate(void* p, size_t bytes, size_t alignment = max_align);
17
  ```
18
 
19
+ *Effects:* Equivalent to `do_deallocate(p, bytes, alignment)`.
20
 
21
  ``` cpp
22
  bool is_equal(const memory_resource& other) const noexcept;
23
  ```
24