SList.removeFront

Removes the front element.

Precondition: !empty

  1. void removeFront()
    struct SList(T)
    void
    removeFront
    ()
  2. size_t removeFront(size_t howMany)

Examples

SList!int l;

l.insertFront(8);
l.insertFront(9);
assert(l.front == 9);
l.removeFront();
assert(l.front == 8);
l.removeFront();
assert(l.empty);

Meta