- Modern C++:Efficient and Scalable Application Development
- Richard Grimes Marius Bancila
- 50字
- 2021-06-10 18:28:07
Designing functions
Often functions will act upon global data, or data passed in by the caller. It is important that when the function completes, it leaves this data in a consistent state. Equally so, it is important that, the function can make assumptions about the data before it accesses it.