O'Reilly logo

A Tour of C++ 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

11. Utilities

The time you enjoy wasting is not wasted time.

– Bertrand Russell

Introduction

Resource Management

unique_ptr and shared_ptr

Specialized Containers

array; bitset; pair and tuple

Time

Function Adaptors

bind(); mem_fn(); function

Type Functions

iterator_traits; Type Predicates

Advice

11.1. Introduction

Not all standard-library components come as part of obviously labeled facilities, such as “containers” or “I/O.” This section gives a few examples of small, widely useful components. The point here is that a function or a type need not be complicated or closely tied to a mass of other functions and types to be useful. Such library components mostly act as building blocks for more powerful library facilities, including ...

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