I want to join thousands of strings in C++. There is no way that I know from before the size of the possible output string. Currently I join the strings using the '+' operator.
Unfortunately, this process takes a lot of time in my program.
In Java I would use StringJoiner which is much faster. Is there anything similar in C++?
I have read similar things online, and I have also read this question, but it is quite old (9 years old) and I imagine things have changed since.