Chapter 16. Auxiliary Concepts, Classes, and Functions

16.1 Buffer

A Buffer is something in which items can be put and removed. The Buffer concept has very few requirements. It does not require any particular ordering of how the items are stored or in what order they will appear when removed. However, there is typically some sort of ordering policy.

Notation

image

Requirements

For a type to model the Buffer concept it must have the following members.

B::value_type

The type of object stored in the buffer. The value type must be Assignable.

B::size_type

An unsigned integer type for representing the number of objects in the buffer.

b.push(t)

Inserts ...

Get The Boost Graph Library: User Guide and Reference Manual 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.