In C++, do class objects automatically get passed in as reference to other functions?