tmp/tmpmve4e69y/{from.md → to.md}
RENAMED
|
@@ -15,37 +15,37 @@ otherwise, `a.allocate(n)`.
|
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
static void deallocate(Alloc& a, pointer p, size_type n);
|
| 18 |
```
|
| 19 |
|
| 20 |
-
*Effects:*
|
| 21 |
|
| 22 |
*Throws:* Nothing.
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
template <class T, class... Args>
|
| 26 |
static void construct(Alloc& a, T* p, Args&&... args);
|
| 27 |
```
|
| 28 |
|
| 29 |
-
*Effects:*
|
| 30 |
call is well-formed; otherwise, invokes
|
| 31 |
`::new (static_cast<void*>(p)) T(std::forward<Args>(args)...)`.
|
| 32 |
|
| 33 |
``` cpp
|
| 34 |
template <class T>
|
| 35 |
static void destroy(Alloc& a, T* p);
|
| 36 |
```
|
| 37 |
|
| 38 |
-
*Effects:*
|
| 39 |
invokes `p->~T()`.
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
static size_type max_size(const Alloc& a) noexcept;
|
| 43 |
```
|
| 44 |
|
| 45 |
*Returns:* `a.max_size()` if that expression is well-formed; otherwise,
|
| 46 |
-
`numeric_limits<size_type>::max()`.
|
| 47 |
|
| 48 |
``` cpp
|
| 49 |
static Alloc select_on_container_copy_construction(const Alloc& rhs);
|
| 50 |
```
|
| 51 |
|
|
|
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
static void deallocate(Alloc& a, pointer p, size_type n);
|
| 18 |
```
|
| 19 |
|
| 20 |
+
*Effects:* Calls `a.deallocate(p, n)`.
|
| 21 |
|
| 22 |
*Throws:* Nothing.
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
template <class T, class... Args>
|
| 26 |
static void construct(Alloc& a, T* p, Args&&... args);
|
| 27 |
```
|
| 28 |
|
| 29 |
+
*Effects:* Calls `a.construct(p, std::forward<Args>(args)...)` if that
|
| 30 |
call is well-formed; otherwise, invokes
|
| 31 |
`::new (static_cast<void*>(p)) T(std::forward<Args>(args)...)`.
|
| 32 |
|
| 33 |
``` cpp
|
| 34 |
template <class T>
|
| 35 |
static void destroy(Alloc& a, T* p);
|
| 36 |
```
|
| 37 |
|
| 38 |
+
*Effects:* Calls `a.destroy(p)` if that call is well-formed; otherwise,
|
| 39 |
invokes `p->~T()`.
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
static size_type max_size(const Alloc& a) noexcept;
|
| 43 |
```
|
| 44 |
|
| 45 |
*Returns:* `a.max_size()` if that expression is well-formed; otherwise,
|
| 46 |
+
`numeric_limits<size_type>::max()/sizeof(value_type)`.
|
| 47 |
|
| 48 |
``` cpp
|
| 49 |
static Alloc select_on_container_copy_construction(const Alloc& rhs);
|
| 50 |
```
|
| 51 |
|