August 2004
Intermediate to advanced
352 pages
7h 38m
English
std::string DiminishingDifficulty: 5
The Slim-Fast diet continues, and std::string is indeed slimming fast.
In this Item, we'll see that all the following functions can be implemented as non-member nonfriends:
resize (2)
assign (6)
+= (3)
append (6)
push_back
insert (7—all but the three-parameter version)
Let's investigate.
resizeCan string::resize be a nonmember function? Explain.
Well, let's ...