tmp/tmpyb7l8g2b/{from.md → to.md}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
| 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
|
| 7 |
|
| 8 |
A C++ program may provide the definition for any of the following
|
| 9 |
-
dynamic memory allocation function signatures declared in header
|
| 10 |
-
|
| 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&)
|
|
@@ -41,9 +41,9 @@ 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
|
| 47 |
program’s declarations shall not be specified as `inline`. No diagnostic
|
| 48 |
is required.
|
| 49 |
|
|
|
|
| 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.
|
| 7 |
|
| 8 |
A C++ program may provide the definition for any of the following
|
| 9 |
+
dynamic memory allocation function signatures declared in header `<new>`
|
| 10 |
+
[[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&)
|
|
|
|
| 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 |
|