How to manage content

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.

+3
source share
1 answer

, , . std::basic_string . , . , , . (, ), , .

+1

Source: https://habr.com/ru/post/1754556/


All Articles