Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65633ce commit 2e5570eCopy full SHA for 2e5570e
api/String.h
@@ -89,6 +89,7 @@ class String
89
// invalid string (i.e., "if (s)" will be true afterwards)
90
bool reserve(unsigned int size);
91
inline unsigned int length(void) const {return len;}
92
+ inline bool isEmpty(void) const { return length() == 0; }
93
94
// creates a copy of the assigned value. if the value is null or
95
// invalid, or if the memory allocation fails, the string will be
0 commit comments