Skip to content

index_list end_item

Ned Bingham edited this page Mar 17, 2017 · 1 revision

std/index_list.h


index_list

  • struct end_item

A placeholder item to represent the boundaries of a linked list.

Member Variables

  • end_item *next, *prev are pointers to the contents of the list.
  • int index is the index of this item.

Member Functions

Constructor

end_item()

The default constructor. next and prev are both set to this to create a cycle and index is set to -1. This way if someone tries to iterate beyond the boundaries of the list, they repeatedly just end up at the boundary.

Simple Containers

Standard Containers

Interface Containers

Specialized Containers

Input/Output

Algorithm

Clone this wiki locally