chsvlib
chsv helper source code

◆ C_auto_ptr() [1/2]

C_auto_ptr ( pointer  pRight = pointer())
explicit

Constructs an object of the C_auto_ptr template instance from the specified pointer that is to be managed by the constructed object.

Parameters
pRightis a pointer whose ownership is taken over by the object. This pointer value shall not be already managed by any other managed pointer (i.e., this value shall not come from calling member get on a managed pointer). A value_initialized pointer (i.e. pointer()) is specified as a default argument for the constructor. The value_initialized pointers, that are null, are not freed by neither C_auto_ptr nor [std::unique_ptr] objects.