Skip to content

Commit b563abc

Browse files
committed
array deque forward_list list vector
1 parent c3ad1f3 commit b563abc

File tree

6 files changed

+62
-1
lines changed

6 files changed

+62
-1
lines changed

docs/standard-library/array.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Defines the container template class **array** and several supporting templates.
2222
#include <array>
2323
```
2424

25+
> [!NOTE]
26+
> The \<array> library also uses the `#include <initializer_list>` statement.
27+
2528
### Classes
2629

2730
|Class|Description|

docs/standard-library/deque.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ Defines the container template class deque and several supporting templates.
2020

2121
```cpp
2222
#include <deque>
23-
2423
```
2524

25+
> [!NOTE]
26+
> The \<deque> library also uses the `#include <initializer_list>` statement.
27+
2628
### Operators
2729

2830
|Operator|Description|

docs/standard-library/forward-list.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Defines the container template class forward_list and several supporting templat
2222
#include <forward_list>
2323
```
2424

25+
> [!NOTE]
26+
> The \<forward_list> library also uses the `#include <initializer_list>` statement.
27+
2528
### Operators
2629

2730
|Operator|Description|
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: "&lt;list&gt; functions | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "11/04/2016"
5+
ms.topic: "reference"
6+
f1_keywords: ["list/std::swap"]
7+
---
8+
# &lt;list&gt; functions
9+
10+
||
11+
|-|
12+
|[swap](#swap)|
13+
14+
## <a name="swap"></a> swap
15+
16+
Exchanges the elements of two lists.
17+
18+
```cpp
19+
template <class T, class Allocator>
20+
void swap(list<T, Allocator>& left, list<T, Allocator>& right)
21+
```
22+
23+
### Parameters
24+
25+
|Parameter|Description|
26+
|---------------|-----------------|
27+
|*left*|An object of type `list`.|
28+
|*right*|An object of type `list`.|
29+
30+
### Remarks
31+
32+
This template function executes `left.swap(right)`.
33+
34+
## See also
35+
36+
[<list>](../standard-library/list.md)<br/>

docs/standard-library/list.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Defines the container template class list and several supporting templates.
2222
#include <list>
2323
```
2424

25+
> [!NOTE]
26+
> The \<list> library also uses the `#include <initializer_list>` statement.
27+
2528
### Operators
2629

2730
|Operator|Description|
@@ -33,6 +36,12 @@ Defines the container template class list and several supporting templates.
3336
|[operator>](../standard-library/list-operators.md#op_gt)|Tests if the list object on the left side of the operator is greater than the list object on the right side.|
3437
|[operator>=](../standard-library/list-operators.md#op_gt_eq)|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.|
3538

39+
### Functions
40+
41+
|Function|Description|
42+
|-|-|
43+
|[swap](../standard-library/list-functions.md#swap)|Exchanges the elements of two lists.|
44+
3645
### Classes
3746

3847
|Class|Description|

docs/standard-library/vector.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ Defines the container template class vector and several supporting templates.
1818

1919
The `vector` is a container that organizes elements of a given type in a linear sequence. It enables fast random access to any element, and dynamic additions and removals to and from the sequence. The `vector` is the preferred container for a sequence when random-access performance is at a premium.
2020

21+
```cpp
22+
#include <vector>
23+
```
24+
25+
> [!NOTE]
26+
> The \<vector> library also uses the `#include <initializer_list>` statement.
27+
2128
For more information about the class `vector`, see [vector Class](../standard-library/vector-class.md). For information about the specialization `vector<bool>`, see [vector\<bool> Class](../standard-library/vector-bool-class.md).
2229

2330
## Syntax
@@ -106,6 +113,7 @@ The second (right) vector in a compare operation.
106113
107114
|||
108115
|-|-|
116+
|[hash]()||
109117
|[vector\<bool> Class](../standard-library/vector-bool-class.md)|A full specialization of the template class vector for elements of type `bool` with an allocator for the underlying type used by the specialization.|
110118
111119
## Requirements

0 commit comments

Comments
 (0)