I have C ++ code that has many functions that receive ostream as an argument. Now I want the string to control the contents of this ostream. For example, I want to replace all occurrences of a specific word with another word.
The actual parameter for these functions is always present in the stream. Is there a way to change the creation of this thread so that it will use such a manipulation function?
thank.
source
share