This function does not modify the content of the string in any way. To clear the content of the string, member clear can be used.
Parameters
noneReturn Value
true if the string size is 0, false otherwise.Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
This program reads the user input line by line and stores it into string content until an empty line is introduced.
Basic template member declaration
( basic_string<charT,traits,Allocator> ) |
See also
| string::clear | Clear string (public member function) |
| string::size | Return length of string (public member function) |
| string::length | Return length of string (public member function) |
