Bewerken

Delen via


<forward_list>

Defines the container class template forward_list and several supporting templates.

Requirements

Header: <forward_list>

Namespace: std

Note

The <forward_list> library also uses the #include <initializer_list> statement.

Members

Operators

Name Description
operator== Tests if the forward list object on the left side of the operator is equal to the forward list object on the right side.
operator!= Tests if the forward list object on the left side of the operator is not equal to the forward list object on the right side.
operator< Tests if the forward list object on the left side of the operator is less than the forward list object on the right side.
operator<= Tests if the forward list object on the left side of the operator is less than or equal to the forward list object on the right side.
operator> Tests if the forward list object on the left side of the operator is greater than the forward list object on the right side.
operator>= Tests if the forward list object on the left side of the operator is greater than or equal to the forward list object on the right side.

Functions

Name Description
swap Exchanges the elements of two forward lists.

Classes

Name Description
forward_list Describes an object that controls a varying-length sequence of elements. The sequence is stored as a singly-linked list of elements, each containing a member of type Type.

See also

Header Files Reference