StrBuf::StrBuf() (Constructor)

Construct a StrBuf.

Virtual?

No

 

Class

StrBuf

 

Arguments

None

 

Notes

The StrBuf constructor initializes the StrBuf to contain a zero-length null buffer.

Example

int main( int argc, char **argv )
{
    StrBuf sb;   // constructor called

    cout << "sb.Text() returns \"" << sb.Text() << "\"\n";
    cout << "sb.Length() returns " << sb.Length() << "\n";
}

Executing the preceding code produces the following output:

sb.Text() returns ""
sb.Length() returns 0