ds/impl_queue_array.go

14 lines
225 B
Go

package ds
type ArrayQueue[T any] struct {
*ListQueue[T]
}
var _ Queue[int] = &ArrayQueue[int]{}
func NewArrayQueue[T any]() *ArrayQueue[T] {
return &ArrayQueue[T]{
ListQueue: NewListQueue[T](NewArrayList[T](0)),
}
}