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

bool GBaseString::operator! ( void   ) const [inline, inherited]

Returns true if and only if the string contains zero characters. This operator is useful for conditional expression in control structures. {verbatim} if (! str) { ... } while (!! str) { ... } -- Note the double operator! {verbatim} Class GBaseString# does not to support syntax "#if# #(str)# #{}#" because the required conversion operator introduces dangerous ambiguities with certain compilers.

Reimplemented from GP< GStringRep >.

Definition at line 1123 of file GString.h.

References GPBase::ptr.

{
  return !ptr;
}

Generated by  Doxygen 1.6.0   Back to index