StrRef::Null()

Return a null StrPtr.

Virtual?

No

 

Class

StrRef

 

Arguments

None

 

Returns

StrPtr

an empty StrPtr

Notes

StrRef::Null() is a static function.

Example

#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