Access/VBA Library

Queue

Class which defines the Queue abstract datatype.

Module: Queue
Example
  Dim q As New Queue

  With q
    .Enqueue "First element"
    .Enqueue "Second element"
    .Enqueue "Third element"

    While Not .IsEmpty
      Debug.Print .Dequeue()
    Wend
  End With
  ' Result:
  'First element
  'Second Element
  'Third Element

Topics