Documentation ¶
Index ¶
- type Queue
- func (q *Queue) Any() bool
- func (q *Queue) Len() int
- func (q *Queue) Peek() any
- func (q *Queue) Pop() any
- func (q *Queue) Push(v any)
- func (q *Queue) Range(handler func(item any))
- func (q *Queue) RangePop(handler func(item any) bool)
- func (q *Queue) RangePopMax(max int, handler func(item any) bool)
- func (q *Queue) Rear() any
- func (q *Queue) RearRange(max int, handler func(item any))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue 队列
func (*Queue) RangePopMax ¶
RangePopMax 从头开始遍历,限制最大数量
Click to show internal directories.
Click to hide internal directories.