#ifndef _LIBCXX_NEW_
#define _LIBCXX_NEW_
+
#include "cstddef"
//extern void* operator new(size_t size) throw (::std::bad_alloc);
return ptr;
}
+#include "exception"
+
+namespace std {
+
+class bad_alloc:
+ public ::std::exception
+{
+public:
+ bad_alloc() noexcept;
+ ~bad_alloc() noexcept;
+
+ const char *what() const noexcept;
+};
+
+} // namespace std
+
#endif
// vim: ft=cpp