Construct an empty instance |
![]() |
|
|
The constructor will initialize the object with an empty string.
|
Performance tip: if you are going to repeatedly add characters or other strings to the string object, try to estimate roughly how many characters the result will hold, and preallocate a buffer with that size using Preallocate. This will reduce memory fragmentation and speed up processing. If you, however, intend to copy the value of the Str object from another Str instance, do not preallocate a buffer. Example: void SomeFunc (Str& source) |
See also: Constructors & utility