tmp/tmptmkg_t1q/{from.md → to.md}
RENAMED
|
@@ -1,16 +1,15 @@
|
|
| 1 |
#### Replacement functions <a id="replacement.functions">[[replacement.functions]]</a>
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
program ([[definitions]]).
|
| 8 |
|
| 9 |
-
A C++program may provide the definition for any of the following
|
| 10 |
-
memory allocation function signatures declared in header
|
| 11 |
-
[[basic.stc.dynamic]], [[
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
operator new(std::size_t)
|
| 15 |
operator new(std::size_t, std::align_val_t)
|
| 16 |
operator new(std::size_t, const std::nothrow_t&)
|
|
@@ -41,10 +40,10 @@ operator delete[](void*, std::size_t, std::align_val_t)
|
|
| 41 |
operator delete[](void*, const std::nothrow_t&)
|
| 42 |
operator delete[](void*, std::align_val_t, const std::nothrow_t&)
|
| 43 |
```
|
| 44 |
|
| 45 |
The program’s definitions are used instead of the default versions
|
| 46 |
-
supplied by the implementation
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
|
|
|
|
| 1 |
#### Replacement functions <a id="replacement.functions">[[replacement.functions]]</a>
|
| 2 |
|
| 3 |
+
[[support]] through [[thread]] and [[depr]] describe the behavior of
|
| 4 |
+
numerous functions defined by the C++ standard library. Under some
|
| 5 |
+
circumstances, however, certain of these function descriptions also
|
| 6 |
+
apply to replacement functions defined in the program [[definitions]].
|
|
|
|
| 7 |
|
| 8 |
+
A C++ program may provide the definition for any of the following
|
| 9 |
+
dynamic memory allocation function signatures declared in header
|
| 10 |
+
`<new>` ([[basic.stc.dynamic]], [[new.syn]]):
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
operator new(std::size_t)
|
| 14 |
operator new(std::size_t, std::align_val_t)
|
| 15 |
operator new(std::size_t, const std::nothrow_t&)
|
|
|
|
| 40 |
operator delete[](void*, const std::nothrow_t&)
|
| 41 |
operator delete[](void*, std::align_val_t, const std::nothrow_t&)
|
| 42 |
```
|
| 43 |
|
| 44 |
The program’s definitions are used instead of the default versions
|
| 45 |
+
supplied by the implementation [[new.delete]]. Such replacement occurs
|
| 46 |
+
prior to program startup ([[basic.def.odr]], [[basic.start]]). The
|
| 47 |
+
program’s declarations shall not be specified as `inline`. No diagnostic
|
| 48 |
+
is required.
|
| 49 |
|