StrRef::Null()
Return a null StrPtr
.
Virtual? |
No |
|
Class |
||
Arguments |
None |
|
Returns |
|
an empty |
Notes
StrRef::Null()
is a static
function.
Example
Copy
#include <iostream>
#include <stdhdrs.h>
#include <strbuf.h>
int main( int argc, char **argv )
{
StrBuf str1;
str1.Set( "abc" );
StrRef sr = StrRef( str1 );
if ( sr == StrRef::Null() )
cout << "str1 was null\n";
else
cout << "str1 was not null\n";
}
Executing the preceding code produces the following output:
str1 was not null