Skip to Content
Effective Modern C++(中文版)
book

Effective Modern C++(中文版)

by Scott Meyers
April 2018
Intermediate to advanced
303 pages
4h 54m
Chinese
China Electric Power Press Ltd.
Content preview from Effective Modern C++(中文版)
7
绪论
如果你是一名身经百战的
C++
程序员,又恰好和我有那么点儿气味相投,你会在和
C++11
最初打上交道时暗忖:“嗯,我明白,这还是
C++
,锦上添花而已。”但随着
学习的深入,你会对变化之纵深吃惊不小:
auto
声明式、基于范围的循环、
lambda
表达式,以及右值引用。这些已经改变了
C++
的面貌,这还没有把全新的并发特性计
算以内。随之而来的还有诸多习惯用法的改变。
0
typedef
已经过时,
nullptr
别名声明式大行其道。枚举量如今要限定作用域。相对于内建指针而言,智能指针成
为优选。在正常情况下,对象的移动语义要好过复制语义。
C++11
已有大量内容要学习,
C++14
自然更不必说。
更关键的是,想要高效地利用这些新能力,任重而道远。如果你仅仅想了解“现代”
C++
特性的基本信息,资料俯拾皆是。但如果你想要寻觅如何采用这些特性去创建正确、
高效、易维护、可移植的软件,恐怕就没那么容易了。本书正是应此而生。本书的写
作目的并非对于
C++11
C++14
特性的泛泛介绍,而是为了揭示它们的高效应用。
本书中的信息被分解成若干准则,称为条款。你想要理解型别推导的各种形式吗?
又或者想要知道何时该使用(或不该使用)
auto
声明式?你是否有兴趣知道为何
const
成员函数应该保证线程安全,或如何使用
std::unique_ptr
实现
Pimpl
习惯用
法,或为何在
lambda
表达式中应该避免默认捕获模式(
default capture mode
),或
std::atomic
volatile
的区别?答案统统在本书中。还不止如此,这些答案都与平 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

流畅的Python(第2版)

流畅的Python(第2版)

Luciano Ramalho
Go语言编程

Go语言编程

威廉·肯尼迪

Publisher Resources

ISBN: 9787519817749