Chapter Summary

This chapter covered additional IO operations and four library types: tuple, bitset, regular expressions, and random numbers.

A tuple is a template that allows us to bundle together members of disparate types into a single object. Each tuple contains a specified number of members, but the library imposes no limit on the number of members we can define for a given tuple type.

A bitset lets us define collections of bits of a specified size. The size of a bitset is not constrained to match any of the integral types, and can even exceed them. In addition to supporting the normal bitwise operators (§ 4.8, p. 152), bitset defines a number of named operations that let us manipulate the state of particular bits in the bitset.

The regular-expression ...

Get C++ Primer, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.