Skip to Content
The C++ Programming Language, 4th Edition
book

The C++ Programming Language, 4th Edition

by Bjarne Stroustrup
May 2013
Intermediate to advanced
1376 pages
47h 26m
English
Addison-Wesley Professional
Content preview from The C++ Programming Language, 4th Edition

34. Memory and Resources

Anyone can have an idea; it’s what you do with the idea that’s the important thing.

– Terry Pratchett

Introduction

“Almost Containers”

array; bitset; vector<bool>; Tuples

Resource Management Pointers

unique_ptr; shared_ptr; weak_ptr

Allocators

The Default Allocator; Allocator Traits; Pointer Traits; Scoped Allocators

The Garbage Collection Interface

Uninitialized Memory

Temporary Buffers; raw_storage_iterator

Advice

34.1. Introduction

The STL (Chapter 31, Chapter 32, Chapter 33) is the most highly structured and general part of the standard-library facilities for the management and manipulation of data. This chapter presents facilities that are more specialized or deal with raw memory (as opposed to typed ...

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

Programming: Principles and Practice Using C++, 3rd Edition

Programming: Principles and Practice Using C++, 3rd Edition

Bjarne Stroustrup

Publisher Resources

ISBN: 9780133522884Purchase Link