Download Is that an in or in/out parameter? Doxygen, C++ - Stack Overflow book pdf free download link or read online here in PDF. Read online Is that an in or in/out parameter? Doxygen, C++ - Stack Overflow book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
It is not easy to decide, but I would still mark your parameter as in,out (or out), as it is a pointer to a non-const object, and you may change the state of that outside object directly or indirectly later - as in your example. Marking it in hides the detail that the pointed SteeringWheel object may change later upon usage of Car. Also, it can puzzle users why an input only pointer parameter ...
Read : Is that an in or in/out parameter? Doxygen, C++ - Stack Overflow pdf book online Select one of servers for direct link: |
---|