alternative Standard Libary  0.29.8
new.hpp-Dateireferenz

gehe zum Quellcode dieser Datei

Namensbereiche

 std
 

Typdefinitionen

typedef void(* std::new_handler) ()
 

Funktionen

void * operator new (unsigned int n)
 
void * operator new[] (unsigned int n)
 
void operator delete (void *p)
 
void operator delete[] (void *p)
 
void * operator new (unsigned int, void *p)
 
void * operator new[] (unsigned int, void *p)
 
void operator delete (void *, void *)
 
void operator delete[] (void *, void *)
 
void operator delete (void *p, unsigned int)
 
void operator delete[] (void *p, unsigned int)
 
new_handler std::set_new_handler (new_handler new_p)
 
new_handler std::get_new_handler ()
 

Dokumentation der Funktionen

◆ operator delete() [1/3]

void operator delete ( void *  p)
56 {
57  xfree (p);
58 }
void xfree(void *p)
Definition: new.cpp:32

◆ operator delete() [2/3]

void operator delete ( void *  ,
void *   
)
73 {
74 }

◆ operator delete() [3/3]

void operator delete ( void *  p,
unsigned  int 
)
79 {
80  xfree (p);
81 }
void xfree(void *p)
Definition: new.cpp:32

◆ operator delete[]() [1/3]

void operator delete[] ( void *  p)
60 {
61  xfree (p);
62 }
void xfree(void *p)
Definition: new.cpp:32

◆ operator delete[]() [2/3]

void operator delete[] ( void *  ,
void *   
)
76 {
77 }

◆ operator delete[]() [3/3]

void operator delete[] ( void *  p,
unsigned  int 
)
83 {
84  xfree (p);
85 }
void xfree(void *p)
Definition: new.cpp:32

◆ operator new() [1/2]

void* operator new ( unsigned int  n)
36 {
37  void *nn = xmalloc(n);
38 
39  if((nn == NULL && handler != NULL))
40  {
41  handler();
42  }
43  return nn;
44 }
std::new_handler handler
Definition: new.cpp:27
void * xmalloc(unsigned int n)
Definition: new.cpp:29

◆ operator new() [2/2]

void* operator new ( unsigned  int,
void *  p 
)
64 {
65  return (p);
66 }

◆ operator new[]() [1/2]

void* operator new[] ( unsigned int  n)
46 {
47  void *nn = xmalloc(n);
48 
49  if((nn == NULL && handler != NULL))
50  {
51  handler();
52  }
53  return nn;
54 }
std::new_handler handler
Definition: new.cpp:27
void * xmalloc(unsigned int n)
Definition: new.cpp:29

◆ operator new[]() [2/2]

void* operator new[] ( unsigned  int,
void *  p 
)
68 {
69  return (p);
70 }