From Jason Turner

[replacement.functions]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpt1axybs5/{from.md → to.md} +5 -46
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 [[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&)
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