MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / empty

Method empty

OutputFormatHelper.h:76–76  ·  view source on GitHub ↗

\brief Check whether the buffer is empty. This also treats a string of just whitespaces as empty.

Source from the content-addressed store, hash-verified

74 ///
75 /// This also treats a string of just whitespaces as empty.
76 bool empty() const { return mOutput.empty() or (std::string::npos == mOutput.find_first_not_of(' ', 0)); }
77
78 /// \brief Returns a reference to the underlying string buffer.
79 std::string& GetString() { return mOutput; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected