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

template<class TYPE>
int GP< TYPE >::operator! (  )  const [inline]

Test operator. Returns true if the smart-pointer is null. The automatic conversion from smart-pointers to regular pointers allows you to test whether a smart-pointer is non-null. You can use both following constructs: {verbatim} if (gp) { ... } while (! gp) { ... } {verbatim}

Reimplemented in GBaseString.

Definition at line 450 of file GSmartPointer.h.

References GPBase::ptr.

{
  return !ptr;
}


Generated by  Doxygen 1.6.0   Back to index