Appending strings in C++

  append, c++, string

In Python, we can use ''.join() to concatenate a list of strings in O(n) time. Is there something similar in C++? If I was to use += to append, it could take up to O(n^2) time.

Source: Windows Questions C++

LEAVE A COMMENT