Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
treiber_stack
main
Stack
Node
TreiberStack
Stack
Generated using Crystal 1.10.1
2024-01-09 19:03:58 UTC
class
Stack(T)
Stack(T)
Reference
Object
Defined in:
stacklib/treiber_stack.cr
Constructors
.new
Instance Method Summary
#compare_and_swap
(expected, to_add)
#pop
#push
(value : Int32)
#to_s
(io)
#top
Constructor Detail
def self.
new
#
[
View source
]
Instance Method Detail
def
compare_and_swap
(expected, to_add)
#
[
View source
]
def
pop
#
[
View source
]
def
push
(value : Int32)
#
[
View source
]
def
to_s
(io)
#
[
View source
]
def
top
#
[
View source
]