The Assign by Addition Operator and the append
method seem to serve the exact same functionality for a string
.
Is there a heuristic for which one I should be using? I mean surely they are different... or at least were different at some point?
Notes:
I couldn't seem to find a c++ duplicate to this though there surely must be one, so feel free to close.
Also append
has overloads which also specify a number of characters to be concatenated to the string
, if I'm only looking to concatenate a portion of a parameter append
is clearly the way to go.