cpp/memory/inout ptr t/operator ptr

Exposes the address of a or  object to a foreign function which will generally release the ownership represented by its value and then re-initialize it.

@1@ Converts to the address of stored  object.

@2@ Converts to the address of a  object. This conversion function participates in overload resolution only if is not same as, and the program is ill-formed if  is not a pointer type. The initial value of the object is equal the value of the stored  object converted to, and any modification to it affects the  value used in the. Accessing the object outside the lifetime of  has undefined behavior.

Once one of these two conversion functions has been called on an object, the other shall not be called on it, otherwise, the behavior is undefined.

Parameters
(none)

Return value
@1@ The address of stored object.

@2@ The address of the object that satisfies aforementioned requirements.