cpp/memory/memory resource/allocate

Allocates storage with a size of at least bytes, aligned to the specified.

Equivalent to.

Exceptions
Throws an exception if storage of the requested size and alignment cannot be obtained.