Thread
:
std::string is not empty?
View Single Post
Feb 4th, 2007, 5:04 PM
#
6
DaWei
Resident Grouch
Join Date: Jun 2005
Posts: 6,453
Rep Power:
10
size () is for the size of the string, in characters. It has nothing to do with the size of the class, per se, which has a number of controlling entities. A study (or design) of containers would probably clear up some unwarranted misconceptions.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner:
Grumpy on C++ Exceptions
DaWei on Pointers
DaWei
View Public Profile
Visit DaWei's homepage!
Find More Posts by DaWei