Two-way linked list of SPL notes

Source: Internet
Author: User
Tags spl rewind

Spldoublylinkedlist

Rewind: Causes the current pointer of the list to point to the bottom of the list (bottom)

Push: Inserts a node to the top (tail) of the list

Pop: Gets the top (tail) node in the list and removes the node from the linked list; The operation does not change the position of the current pointer

Current: A pointer to a list of nodes that must be called before calling Rewind. When a pointed node is deleted, it points to an empty node.

Next: The pointer to the current node of the list points to the next node, and the return value of this change

Unshift: Inserts a node into the bottom (head) of the list

Shift: Delete the bottom (head) node of a list

Bottom: Gets the bottom (head) element of the list and the current pointer position is unchanged

Top: Gets the top (trailing) element of the list, with the current pointer position unchanged


This article is from the "Home Birds Paradise" blog, please be sure to keep this source http://birdinroom.blog.51cto.com/7740375/1690791

Two-way linked list of SPL notes

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.