BOOK / SOURCE & READING RECORD
Overview of the New C++ (C++11/14)
Scott Meyers
课程讲义公开样张,Last Revised 2/17/15;不是付费完整讲义
Overview of the New C++ (C++11/14)
Have fully read the official Artima 42-page sample (2 pages of title/copyright, Slides 1—40), including introduction, overview of copy and move, word frequency program C++98/11 comparison, auto, range-for, nullptr, enumerations, Unicode and raw strings. Uniform initialization, decltype, etc., only appear in the course catalog or descriptions and are not counted as actually read; the remaining content of the full 409-page course has not been obtained or read.
Edition, actual reading range, and original sources →Sources
- Author's course description
Explains the course scope, not the full lecture notes
- Artima full lecture notes sales page
Full PDF requires purchase, not obtained
- Artima official sample
42 pages, Slides 1—40, revised 2015-02-17
auto is not equal to reference: checking the boundaries of copy and aliasing
Official sample Slides 20—23 (PDF pp.22—25); auxiliary context Slides 8—17 C++98/11 comparison
This course starts by displaying C++98 and C++11 programs side by side. The focus is not on making it as short as possible, but on how new language facilities change the way of expression and the costs. auto can omit lengthy type names, but is still constrained by the rules of value, reference, and constness; when traversing or caching data, omitting a reference symbol may turn “observing the original object” into “copying a snapshot”. Therefore, the original examples first distinguish copy from aliasing by behavior, then use type assertions to verify whether array bounds are preserved. The course lecture notes are materials with instructor annotations; one cannot count all topics like concurrency, move, and library design that appear in the table of contents as having been read; the sample stops at raw strings, so one cannot claim to have completed the entire C++11/14 course based on this.
Related fundamentals
The deduction boundaries of auto and decltype(auto)Array Parameter Decay: Declaration Adjustment and Array-to-Pointer ConversionReferences and temporary object lifetime