Exceptional C++ Style

联合创作 · 2023-10-10 23:35

Software "style" is about finding the perfect balance between overhead and functionality...elegance and maintainability...flexibility and excess. In Exceptional C++ Style, legendary C++ guru Herb Sutter presents 40 new programming scenarios designed to analyze not only the what but the why and help you find just the right balance in your software. Organized around practical pro...

Software "style" is about finding the perfect balance between overhead and functionality...elegance and maintainability...flexibility and excess. In Exceptional C++ Style, legendary C++ guru Herb Sutter presents 40 new programming scenarios designed to analyze not only the what but the why and help you find just the right balance in your software. Organized around practical problems and solutions, this book offers new insight into crucial C++ details and interrelationships, and new strategies for today's key C++ programming techniques--including generic programming, STL, exception safety, and more. You'll find answers to questions like: * What can you learn about library design from the STL itself? * How do you avoid making templated code needlessly non-generic? * Why shouldn't you specialize function templates? What should you do instead? * How does exception safety go beyond try and catch statements? * Should you use exception specifications, or not? * When and how should you "leak" the private parts of a class? * How do you make classes safer for versioning? * What's the real memory cost of using standard containers? * How can using const really optimize your code? * How does writing inline affect performance? * When does code that looks wrong actually compile and run perfectly, and why should you care? * What's wrong with the design of std::string? Exceptional C++ Style will help you design, architect, and code with style--and achieve greater robustness and performance in all your C++ software.

Herb Sutter,ISO C++标准委员会主席,C++ Users Journal杂志特邀编辑和专栏作家。他目前在微软公司领导.NET环境下C++语言扩展的设计工作。除本书外,他还撰写了三本广受赞誉的图书:《C++编程规范》(中、英文版都由人民邮电出版社出版)。Exceptional C++和More Exceptional C++

浏览 1
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报