package
Version:
v1.2.11
Opens a new window with list of versions in this module.
Published: Feb 10, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func (s *QueArray) Push(elem interface{})
先进先出
容量是2的n次幂,非线程安全,适当的初始容量大小可以减少内存分配次数
对比QueArray有一倍左右的性能提升
func (q *Queue) Back() interface{}
返回队头
func (q *Queue) Front() interface{}
返回队头
func (q *Queue) PopFront() interface{}
弹出队头
func (q *Queue) PushBack(elem interface{})
追加到队尾
Source Files
¶
Click to show internal directories.
Click to hide internal directories.