From Jason Turner

[replacement.functions]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmptmkg_t1q/{from.md → to.md} +11 -12
tmp/tmptmkg_t1q/{from.md → to.md} RENAMED
@@ -1,16 +1,15 @@
1
  #### Replacement functions <a id="replacement.functions">[[replacement.functions]]</a>
2
 
3
- Clauses  [[language.support]] through  [[thread]] and Annex  [[depr]]
4
- describe the behavior of numerous functions defined by the C++standard
5
- library. Under some circumstances, however, certain of these function
6
- descriptions also apply to replacement functions defined in the
7
- program ([[definitions]]).
8
 
9
- A C++program may provide the definition for any of the following dynamic
10
- memory allocation function signatures declared in header `<new>` (
11
- [[basic.stc.dynamic]], [[support.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 ([[support.dynamic]]). Such replacement
47
- occurs prior to program startup ([[basic.def.odr]], [[basic.start]]).
48
- The program’s declarations shall not be specified as `inline`. No
49
- diagnostic is required.
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