Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

template<class TYPE>
GP< TYPE >::GP ( TYPE *  nptr  )  [inline]

Constructs a smart-pointer from a regular pointer. The pointed object must be dynamically allocated (with operator new#). You should no longer explicitly destroy the object referenced by sptr# since the object life is now controlled by smart-pointers.

Parameters:
nptr regular pointer to a {dynamically allocated object}.

Definition at line 396 of file GSmartPointer.h.

: GPBase((GPEnabled*)nptr)
{
}


Generated by  Doxygen 1.6.0   Back to index