template<typename T>
class Sleak::Queue< T >
Implements a FIFO (First-In, First-Out) queue data structure.
The Queue class maintains a collection of elements in the order they were added. It is suitable for scenarios where you need to process elements in a first-come, first-served manner. Use this class when you need to implement task queues, message queues, or breadth-first search algorithms.
Example Use Cases:
- Implementing a task queue for background processing.
- Managing message queues in a network communication system.
- Performing breadth-first search in graph algorithms.
- Simulating real-world queues, such as waiting lines.
Implementation Details:
- Uses an underlying List to store the queue elements.
- Provides methods for enqueueing (adding) and dequeueing (removing) elements.
- Maintains the FIFO order of elements.
Definition at line 32 of file Queue.hpp.