tmp/tmpslb4ebfw/{from.md → to.md}
RENAMED
|
@@ -11,10 +11,18 @@
|
|
| 11 |
```
|
| 12 |
|
| 13 |
*Returns:* `a.allocate(n, hint)` if that expression is well-formed;
|
| 14 |
otherwise, `a.allocate(n)`.
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
``` cpp
|
| 17 |
static constexpr void deallocate(Alloc& a, pointer p, size_type n);
|
| 18 |
```
|
| 19 |
|
| 20 |
*Effects:* Calls `a.deallocate(p, n)`.
|
|
|
|
| 11 |
```
|
| 12 |
|
| 13 |
*Returns:* `a.allocate(n, hint)` if that expression is well-formed;
|
| 14 |
otherwise, `a.allocate(n)`.
|
| 15 |
|
| 16 |
+
``` cpp
|
| 17 |
+
[[nodiscard]] static constexpr allocation_result<pointer, size_type>
|
| 18 |
+
allocate_at_least(Alloc& a, size_type n);
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
*Returns:* `a.allocate_at_least(n)` if that expression is well-formed;
|
| 22 |
+
otherwise, `{a.allocate(n), n}`.
|
| 23 |
+
|
| 24 |
``` cpp
|
| 25 |
static constexpr void deallocate(Alloc& a, pointer p, size_type n);
|
| 26 |
```
|
| 27 |
|
| 28 |
*Effects:* Calls `a.deallocate(p, n)`.
|