line = "hello 2021"
istringstream split_string(line);
was a useful code to get the values from a string, i.e.
split_string>>str>>temp_double;
However, suppose that the value of line was changed, i.e.
line="hello world"
,and one wanted to write the following code with the updated value of line.
split_string>>str1>>str2;
How to update split_string so that it streamed the updated value of line?