generic_queue
November 21, 2025 ยท View on GitHub
Shows how to use xtd::collections::generic::queue class.
Sources
Build and run
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
xtdc run
Output
one
two
three
four
five
Dequeuing 'one'
Peek at next item to dequeue: two
Dequeuing 'two'
Contents of the first copy:
three
four
five
Contents of the second copy, with duplicates and empty:
three
four
five
queue_copy.contains("four") = true
queue_copy.clear()
queue_copy.count() = 0