tmp/tmpt1axybs5/{from.md → to.md}
RENAMED
|
@@ -1,49 +1,8 @@
|
|
| 1 |
#### Replacement functions <a id="replacement.functions">[[replacement.functions]]</a>
|
| 2 |
|
| 3 |
-
[[support]] through [[
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 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&)
|
| 16 |
-
operator new(std::size_t, std::align_val_t, const std::nothrow_t&)
|
| 17 |
-
```
|
| 18 |
-
|
| 19 |
-
``` cpp
|
| 20 |
-
operator delete(void*)
|
| 21 |
-
operator delete(void*, std::size_t)
|
| 22 |
-
operator delete(void*, std::align_val_t)
|
| 23 |
-
operator delete(void*, std::size_t, std::align_val_t)
|
| 24 |
-
operator delete(void*, const std::nothrow_t&)
|
| 25 |
-
operator delete(void*, std::align_val_t, const std::nothrow_t&)
|
| 26 |
-
```
|
| 27 |
-
|
| 28 |
-
``` cpp
|
| 29 |
-
operator new[](std::size_t)
|
| 30 |
-
operator new[](std::size_t, std::align_val_t)
|
| 31 |
-
operator new[](std::size_t, const std::nothrow_t&)
|
| 32 |
-
operator new[](std::size_t, std::align_val_t, const std::nothrow_t&)
|
| 33 |
-
```
|
| 34 |
-
|
| 35 |
-
``` cpp
|
| 36 |
-
operator delete[](void*)
|
| 37 |
-
operator delete[](void*, std::size_t)
|
| 38 |
-
operator delete[](void*, std::align_val_t)
|
| 39 |
-
operator delete[](void*, std::size_t, std::align_val_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 |
|
|
|
|
| 1 |
#### Replacement functions <a id="replacement.functions">[[replacement.functions]]</a>
|
| 2 |
|
| 3 |
+
If a function defined in [[support]] through [[exec]] and [[depr]] is
|
| 4 |
+
specified as replaceable [[term.replaceable.function]], the description
|
| 5 |
+
of function semantics apply to both the default version defined by the
|
| 6 |
+
C++ standard library and the replacement function defined by the
|
| 7 |
+
program.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|