string::clear()

Write here if you have problems with your C++ source code

Moderator: Board moderators

Locked
nev4
New poster
Posts: 15
Joined: Sun Apr 30, 2006 10:19 am
Location: Lithuania

string::clear()

Post by nev4 »

why does judge for string::clear() gives CE(forced to use string::erase() which is more expensive(?))? Should i include more than <string>? Is size_t same as string::size_type used for string::npos?

little joey
Guru
Posts: 1080
Joined: Thu Dec 19, 2002 7:37 pm

Post by little joey »

Please post this question in the correct forum (C++).

Locked

Return to “C++”