Skip to Content
C++20 for Programmers: An Objects-Natural Approach, 3rd Edition
book

C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

by Paul Deitel, Harvey Deitel
April 2022
Intermediate to advanced
1012 pages
38h 1m
English
Pearson
Content preview from C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

20. Other Topics and a Look Toward the Future of C++

Objectives

In this chapter, you’ll:

  • Use const_cast to temporarily treat a const object as a non-const object.

  • Understand storage classes and storage duration.

  • Use namespaces to ensure that identifiers are unique.

  • Use mutable members in const objects.

  • Use operator keywords in place of corresponding operator symbols.

  • Use class-member pointer operators .* and ->*.

  • Determine an object’s type with runtime type information (RTTI), dynamic_cast, typeid and type_info.

  • Use the C++17 and C++20 [[nodiscard]] attribute to indicate that a function’s return value should not be ignored.

  • Using smart pointers to manage dynamic memory for objects shared throughout a program.

  • Determine types at compile time ...

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.
Start your free trial

You might also like

Designing Data-Intensive Applications, 2nd Edition

Designing Data-Intensive Applications, 2nd Edition

Martin Kleppmann, Chris Riccomini

Publisher Resources

ISBN: 9780136905776