cpp/memory/out ptr t/out ptr

Returns an with deduced template arguments that captures arguments for resetting by reference.

The program is ill-formed if construction of the return value (see below) is ill-formed.

Return value
, where is
 * , if is not same as . Otherwise,
 * , if it is valid and denotes a type. Otherwise,
 * , if is valid and denotes a type. Otherwise,