[Example 1: #include<new>void*operatornew(std::size_t sz){if(sz ==0)returnnullptr; // undefined behavior, should return non-null pointerreturn std::malloc(1); // undefined behavior, if successful should return allocation with// length in bytes is at least as large as the requested size}voidoperatordelete(void* ptr)noexcept{throw0; // undefined behavior, terminates by throwing an exception} — end example]