How can I add class functions to vectors without going through the std lib source code? So just for example I want to add a function to vectors that shift a vector left by 1. I know I can execute it by
myVector = shiftLeft(myVector)
,
but is there a way to execute by
myVector.shiftLeft()
?
Thanks either way!