Other issues
GNC Standard Interface
The most common way to use New_allocator Malloc_allocator
VS2013 standard assignment did not do too much work
G4.9 Standard Dispenser New_allocator
Array_allocate Bottom is an array, do not need to release the resources deallocate do nothing, arrays do not release resources, only malloc need to release resources. is static and does not have to be released or returned.
Since resources can only be allocated without recycling, the previously allocated resources will not be able to do so, unless you clean it up and you can use it again two times.
There is debug_allocator this is in front of adding a cookie-like information, in fact, it is very unnecessary. Because the purpose of using the allocator is to avoid the use of cookies as much as possible, the opposite of the original purpose.
The dispenser is all in the service of the container
Other part
The string is shared.
Copy on Right COW
C + + Memory Management Other issues