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

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

Assigns a regular pointer to a smart-pointer lvalue. 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 426 of file GSmartPointer.h.

References GPBase::assign().

{
  return (GP<TYPE>&)( assign(nptr) );
}


Generated by  Doxygen 1.6.0   Back to index