E
Espen Ruud Schultz
Lets say I have a char pointer and an std::string. Is it possible to get a
pointer to the std::string's "content" so that the char pointer can point to
the same text? And vice versa; can I give the std::string a pointer and a
length and then give the std::string control over the pointer and its
content?
I'm basically trying to avoid copying large text between an std::string and
a char pointer, and vice versa.
Is there anyhing in the std::string class to support this?
, Espen
pointer to the std::string's "content" so that the char pointer can point to
the same text? And vice versa; can I give the std::string a pointer and a
length and then give the std::string control over the pointer and its
content?
I'm basically trying to avoid copying large text between an std::string and
a char pointer, and vice versa.
Is there anyhing in the std::string class to support this?
, Espen