Web materials:
Operator new
(1) only allocate the required space and do not call the constructor of the object. When the requested space cannot be met
-> If new_handler exists, new_handler is called. Otherwise
-> If no exception is required (expressed as the nothrow parameter), run the bad_alloc command. Otherwise
-> 0 is returned.
(2) It can be reloaded.
(3) During overload, the return type must be declared as void *
(4) During heavy load, the first parameter type must be the size (in bytes) required for space allocation for the expression, and the type is size_t
(5) You can include other parameters during heavy load.
New operator (in general use of new)
(1) 1. Call operator new to allocate enough space
2. Call the constructor of the relevant object (the constructor can also be parsed here without releasing the memory !)
(2) cannot be overloaded