Skip to content

Commit 2adcaf0

Browse files
authored
Merge pull request MicrosoftDocs#2455 from yecril71pl/patch-1
Pair constructors are undefined sometimes
2 parents 65f3327 + 67819cf commit 2adcaf0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

docs/standard-library/pair-structure.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ A pair whose values are to be used to initialize the elements of another pair.
6262
6363
## Return Value
6464
65-
The first (default) constructor initializes first element of the pair to the default of type `T1` and second element to default of type `T2`.
65+
The first (default) constructor initializes the first element of the pair to the default of type `T1` and the second element to default of type `T2`. It is defined if both types are default-constructible.
6666
67-
The second constructor initializes first element of the pair to *Val1* and second to *Val2.*
67+
The second constructor initializes the first element of the pair to *Val1* and the second to *Val2.* It is defined if both types are copy-constructible.
6868
69-
The third (template) constructor initializes first element of the pair to `Right`. **first** and second to `Right`. **second**.
69+
The third (template) constructor initializes the first element of the pair to `Right`. **first** and the second to `Right`. **second**. It is defined if both types of the pair are constructible from the value types provided.
7070
71-
The fourth constructor initializes first element of the pair to *Val1* and second to *Val2* using [Rvalue Reference Declarator: &&](../cpp/rvalue-reference-declarator-amp-amp.md).
71+
72+
The fourth constructor initializes the first element of the pair to *Val1* and the second to *Val2* using [Rvalue Reference Declarator: &&](../cpp/rvalue-reference-declarator-amp-amp.md). It is defined if both types of the pair are constructible from the value types provided.
7273
7374
## Remarks
7475

0 commit comments

Comments
 (0)