Modern C++:Efficient and Scalable Application Development
上QQ阅读APP看书,第一时间看更新

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.