util/new.hpp

19 lines
570 B
C++
Raw Normal View History

2022-01-10 02:51:39 +01:00
#pragma once
#include <stddef.h>
[[nodiscard]] void *operator new(size_t size);
void operator delete(void *ptr) noexcept;
void operator delete(void *ptr, size_t size) noexcept;
[[nodiscard]] void *operator new[](size_t size);
void operator delete[](void *ptr) noexcept;
void operator delete[](void *ptr, size_t size) noexcept;
[[nodiscard]] void *operator new(size_t size, void *ptr) noexcept;
[[nodiscard]] void *operator new[](size_t size, void *ptr) noexcept;
void operator delete(void *ptr, void *)noexcept;
void operator delete[](void *ptr, void *) noexcept;