#ifndef LLVM_LIBC_SRC___SUPPORT_CPP_NEW_H
#define LLVM_LIBC_SRC___SUPPORT_CPP_NEW_H
#include "src/__support/common.h"
#include "src/__support/macros/config.h"
#include <stddef.h>
#include <stdlib.h>
namespace std {
enum class align_val_t : size_t { … };
}
namespace LIBC_NAMESPACE_DECL {
class AllocChecker { … };
}
LIBC_INLINE void *operator new(size_t size,
LIBC_NAMESPACE::AllocChecker &ac) noexcept { … }
LIBC_INLINE void *operator new(size_t size, std::align_val_t align,
LIBC_NAMESPACE::AllocChecker &ac) noexcept { … }
LIBC_INLINE void *operator new[](size_t size,
LIBC_NAMESPACE::AllocChecker &ac) noexcept { … }
LIBC_INLINE void *operator new[](size_t size, std::align_val_t align,
LIBC_NAMESPACE::AllocChecker &ac) noexcept { … }
LIBC_INLINE void *operator new(size_t, void *p) { … }
LIBC_INLINE void *operator new[](size_t, void *p) { … }
#define DELETE_NAME …
void operator delete(void *) noexcept DELETE_NAME(delete);
void operator delete(void *, std::align_val_t) noexcept
DELETE_NAME(delete_aligned);
void operator delete(void *, size_t) noexcept DELETE_NAME(delete_sized);
void operator delete(void *, size_t, std::align_val_t) noexcept
DELETE_NAME(delete_sized_aligned);
void operator delete[](void *) noexcept DELETE_NAME(delete_array);
void operator delete[](void *, std::align_val_t) noexcept
DELETE_NAME(delete_array_aligned);
void operator delete[](void *, size_t) noexcept DELETE_NAME(delete_array_sized);
void operator delete[](void *, size_t, std::align_val_t) noexcept
DELETE_NAME(delete_array_sized_aligned);
#undef DELETE_NAME
#endif