6 const nothrow_t nothrow
= {};
8 const char *bad_alloc::what()
15 static void *base_new(std::size_t size
)
18 ptr
= std::malloc(size
);
22 throw std::bad_alloc();
26 void *operator new (std::size_t size
)
28 return base_new(size
);
31 void *operator new[] (std::size_t size
)
33 return base_new(size
);
36 void operator delete (void *p
) throw()
41 void operator delete[] (void *p
) throw()
46 void *operator new (std::size_t, void *p
) throw()
51 void *operator new[] (std::size_t, void *p
) throw()
56 void *operator new (std::size_t size
, std::nothrow_t
) throw()
58 return std::malloc(size
);
61 void *operator new[] (std::size_t size
, std::nothrow_t
) throw()
63 return std::malloc(size
);