From Jason Turner

[allocator.members]

Diff to HTML by rtfpessoa

tmp/tmpa6zlrih8/{from.md → to.md} RENAMED
@@ -6,11 +6,11 @@ concurrent calls to those member functions from different threads. Calls
6
  to these functions that allocate or deallocate a particular unit of
7
  storage shall occur in a single total order, and each such deallocation
8
  call shall happen before the next allocation (if any) in this order.
9
 
10
  ``` cpp
11
- [[nodiscard]] constexpr T* allocate(size_t n);
12
  ```
13
 
14
  *Mandates:* `T` is not an incomplete type [[term.incomplete.type]].
15
 
16
  *Returns:* A pointer to the initial element of an array of `n` `T`.
@@ -23,11 +23,11 @@ storage cannot be obtained.
23
  `::operator new` [[new.delete]], but it is unspecified when or how often
24
  this function is called. This function starts the lifetime of the array
25
  object, but not that of any of the array elements.
26
 
27
  ``` cpp
28
- [[nodiscard]] constexpr allocation_result<T*> allocate_at_least(size_t n);
29
  ```
30
 
31
  *Mandates:* `T` is not an incomplete type [[term.incomplete.type]].
32
 
33
  *Returns:* `allocation_result<T*>{ptr, count}`, where `ptr` is a pointer
 
6
  to these functions that allocate or deallocate a particular unit of
7
  storage shall occur in a single total order, and each such deallocation
8
  call shall happen before the next allocation (if any) in this order.
9
 
10
  ``` cpp
11
+ constexpr T* allocate(size_t n);
12
  ```
13
 
14
  *Mandates:* `T` is not an incomplete type [[term.incomplete.type]].
15
 
16
  *Returns:* A pointer to the initial element of an array of `n` `T`.
 
23
  `::operator new` [[new.delete]], but it is unspecified when or how often
24
  this function is called. This function starts the lifetime of the array
25
  object, but not that of any of the array elements.
26
 
27
  ``` cpp
28
+ constexpr allocation_result<T*> allocate_at_least(size_t n);
29
  ```
30
 
31
  *Mandates:* `T` is not an incomplete type [[term.incomplete.type]].
32
 
33
  *Returns:* `allocation_result<T*>{ptr, count}`, where `ptr` is a pointer