B
Boltar
How persistant is the string created by substr()? Is it deleted
immediately the context exits or is it stored internally by the parent
string? I ask because I'm wondering if its safe to keep a copy of the
pointer returned doing mystr.substr(...).c_str() for a short while to
do some processing on it. Obviously if the sub string is deleted it'll
become invalid.
Thanks for any help
B2003
immediately the context exits or is it stored internally by the parent
string? I ask because I'm wondering if its safe to keep a copy of the
pointer returned doing mystr.substr(...).c_str() for a short while to
do some processing on it. Obviously if the sub string is deleted it'll
become invalid.
Thanks for any help
B2003