Rose::StringUtility::operator<<
Append string to vector of strings with location information.
Synopsis
Declared in <src/Rose/StringUtility/FileUtility.h>
FileWithLineNumbers&
operator<<(
FileWithLineNumbers& f,
std::string const& str);
Description
Appends str to the last string in the vector of strings with location information. If the vector is empty then a new element is created.
The new code is marked as either generated (empty file name) or not generated (non‐empty name) based on whether the vector was initially empty or whether the final element of the vector was generated. Adding a string to an empty vector makes it always be a generated string; adding it to a non‐empty vector makes it generated or not generated depending on whether the last element of the vector is generated or not generated.
The string str should not include line termination. (see toString).
@{
Return Value
Reference to the current output stream
Parameters
Name |
Description |
f |
An output stream |
str |
The object to output |
Created with MrDocs