
Choose between pass by value and pass by reference so deposits and withdrawals change the caller's balance while a fee preview leaves it alone.
Use reference out-parameters and read-only const references to split a customer name into two fields, tidy a stored name in place and mask an account number.
Swap and move values through reference parameters, and return a result by value so it stays independent of the caller's variables.
Build a one-account ledger from plain variables, choosing value, reference or const reference for every parameter and return so postings, renames, fees and transfers reach the caller while previews and copies do not.