Documentation
¶
Index ¶
- type Hook
- type Hooked
- type List
- func (l *List[T, P]) Back() P
- func (l *List[T, P]) Empty() bool
- func (l *List[T, P]) Front() P
- func (l *List[T, P]) InsertAfter(it, mark P)
- func (l *List[T, P]) InsertBefore(it, mark P)
- func (l *List[T, P]) MoveToBack(it P)
- func (l *List[T, P]) MoveToFront(it P)
- func (l *List[T, P]) PushBack(it P)
- func (l *List[T, P]) PushFront(it P)
- func (l *List[T, P]) Remove(it P)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
List is an intrusive doubly-linked list. Mutations involving a node the list does not own are no-ops, as in container/list. A node linked into a DIFFERENT list is indistinguishable from a member without a per-node list pointer and remains the caller's contract.
func (*List[T, P]) InsertAfter ¶
func (l *List[T, P]) InsertAfter(it, mark P)
func (*List[T, P]) InsertBefore ¶
func (l *List[T, P]) InsertBefore(it, mark P)
func (*List[T, P]) MoveToBack ¶
func (l *List[T, P]) MoveToBack(it P)
func (*List[T, P]) MoveToFront ¶
func (l *List[T, P]) MoveToFront(it P)
Click to show internal directories.
Click to hide internal directories.