cpp/memory/polymorphic allocator/allocate

Allocates storage for objects of type  using the underlying memory resource. Equivalent to.

Return value
A pointer to the allocated storage.

Exceptions
Throws std if ; may also throw any exceptions thrown by the call to.