Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 2.14 KB

list.md

File metadata and controls

51 lines (38 loc) · 2.14 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: <list>
<list>
11/04/2016
<list>
list header
2345823b-5612-44d8-95d3-aa96ed076d17

<list>

Defines the container class template list and several supporting templates.

Syntax

#include <list>

Note

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

Members

Operators

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

Functions

Name Description
swap Exchanges the elements of two lists.

Classes

Name Description
list Class A class template of sequence containers that maintain their elements in a linear arrangement and allow efficient insertions and deletions at any location within the sequence.

See also

Header Files Reference
Thread Safety in the C++ Standard Library
C++ Standard Library Reference