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++(中文版)
8
绪论
的具体情况是否真的违反了条款所指。本书的真正目标并不在于告诉你什么该做,什
么不该做,而是想要传达对
C++11
C++14
运作原理的更深入理解。
术语和惯例
为保证理解的一致性,厘清对于一些术语的认识很有必要。首先要说清楚的就是“
C++
这个词,是不是有点儿讽刺意味呢。
C++
有四个官方钦定版本,都是以
ISO
标准被接
受的年份命名的,它们是
C++98
C++03
C++11
C++14
C++98
C++03
仅有
一些技术细节上的不同,所以在本书中我将它们统称为
C++98
。当提到
C++11
时,
我的意思是
C++11
C++14
都适用,因为
C++14
实际上是
C++11
的超集。而如果写
的是
C++14
,我仅指
C++14
。如果我说的是什么都不附加的
C++
,意思就是适用一切
语言版本。
术语
意指的语言版本
C++
所有版本
C++98 C++98
C++03
C++11 C++11
C++14
C++14 C++14
依照上面的约定,我可能会有这样的表述:
C++
非常重视运行效率(所有版本都成立),
C++98
缺乏并发支持(仅对
C++98
C++03
成立),
C++11
支持
lambda
表达式(对
C++11
C++14
成立),
C++14
提供了广义返回值型别推导(仅对
C++14
成立)。
C++11
被最广泛接受的特性可能莫过于移动语义,而移动语义的基础在于区分左值表
达式和右值表达式。因为,一个对象是右值意味着能够对其实施移动语义,而左值则
一般不然。从概念上说(实践上并不总是成立),右值对应的是函数返回的临时对象, ...
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