How do references work under the hood (without getting too technical)?
What's better as a function argument:
const myobj& val OR const myobj val
when myobj contains a single char as a data member? Copying one char likely has less overhead than passing a pointer to myobj (which will likely be a 4 byte pointer) but what about references? Is there an overhead to using them or are they more like an alias for an existing variable?