O'Reilly logo

The C++ Programming Language, Fourth Edition by Bjarne Stroustrup

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required