GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing cplusplus.com — std::string::empty Reference
string
public member function
<string>
std::string::emptybool empty() const; bool empty() const noexcept; Test if string is empty
This function does not modify the value of the string in any way. To clear the content of a string, see string::clear. ParametersnoneReturn Valuetrue if the string length is 0, false otherwise.Example
This program reads the user input line by line and stores it into string content until an empty line is introduced. Complexity
Unspecified, but generally constant.
Constant.
Iterator validityNo changes.Data racesThe object is accessed.Exception safetyNo-throw guarantee: this member function never throws exceptions.See also
Home page | Privacy policy
© cplusplus.com, 2000-2026 - All rights reserved - v3.3.4s Spotted an error? contact us | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |