CheapStack
Moonshine.CheapStack
— Typestruct CheapStack{T}
Simple stack container.
Functionalities
The following operations are supported:
isempty
empty!
first
length
pop!
push!
For convenience, CheapStack
implements the iteration interface.
Fields
store::UnsafeArrays.UnsafeArray{T, 1} where T
ptr::Base.RefValue{Int64}
Moonshine.CheapStack
— MethodCheapStack(store)
Construct a CheapStack
that uses an UnsafeArray
as store.