An interface for a FIFO queue with items of a specific type.
This interface is deliberately designed to be as minimal as possible,
only covering the core functionality shared by the wide variety of possible
queue implementations. For example, even a basic pop function which returns
an item is not generic -- certain implementations may need to relinquish the
item after popping it, making a simple pop-then-return implementation
impossible. For this reason, some additional helper functions are provided,
which may be useful with some queue implementations.
Boost Software License Version 1.0. See LICENSE_BOOST.txt for details.
Alternatively, this file may be distributed under the terms of the Tango
3-Clause BSD License (see LICENSE_BSD.txt for details).
An interface for a FIFO queue with items of a specific type.
This interface is deliberately designed to be as minimal as possible, only covering the core functionality shared by the wide variety of possible queue implementations. For example, even a basic pop function which returns an item is not generic -- certain implementations may need to relinquish the item after popping it, making a simple pop-then-return implementation impossible. For this reason, some additional helper functions are provided, which may be useful with some queue implementations.