next up previous contents
Next: Resizing and Compacting Strings Up: Allocation Options Previous: Statically-Allocated string data   Contents

Other options

It is also possible to create a string with no associated data using the empty Str() constructor. As an example:

Str x;

Data can be attached later using the attach() function. It is also possible to attach() new data to a string that already has data. The attach() function is detailed in chapter 6.



2007-05-05