cpp/memory/ranges/destroy n

Destroys the objects in the range starting at, equivalent to

Return value
The end of the range of objects that has been destroyed.

Complexity
Linear in.