You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm, doing this with the two input vectors only does not seem so easy.
Instead, this is maybe a place where a static reusable data structure would makse sense.
Merge the two into a static third vector, and then coppy the third vector to, say, lhs vector.
This only requires to sometimes resize the lhs.
Btw, if the underlying data struct was a dequeue, then one could just concatenate the lhs and rhs and coppy the merged data there, no allocation would be needed.
Maybe we could try sometime what this does.
The text was updated successfully, but these errors were encountered:
Hm, doing this with the two input vectors only does not seem so easy.
Instead, this is maybe a place where a static reusable data structure would makse sense.
Merge the two into a static third vector, and then coppy the third vector to, say, lhs vector.
This only requires to sometimes resize the lhs.
Btw, if the underlying data struct was a dequeue, then one could just concatenate the lhs and rhs and coppy the merged data there, no allocation would be needed.
Maybe we could try sometime what this does.
The text was updated successfully, but these errors were encountered: