Skip to content

Commit bfad37c

Browse files
authored
Merge pull request #5476 from Rageking8/fix-dangling-see-and-clean-up-complex-class-template-specializations
Fix dangling "see ..." and clean up `complex` class template specializations
2 parents 2909524 + 30ab0f9 commit bfad37c

File tree

3 files changed

+30
-33
lines changed

3 files changed

+30
-33
lines changed

docs/standard-library/complex-double.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
description: "Learn more about: complex<double>"
32
title: "complex<double>"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: complex<double>"
4+
ms.date: 11/04/2016
55
f1_keywords: ["complex/std::complex<double>"]
66
helpviewer_keywords: ["complex<double> function"]
7-
ms.assetid: 0d0b9d2a-9b9b-410b-82a0-86b6df127e47
87
---
98
# `complex<double>`
109

@@ -29,13 +28,13 @@ constexpr explicit complex(const complex<long double>& complexNum);
2928
3029
### Parameters
3130
32-
*RealVal*\
31+
*`RealVal`*\
3332
The value of type **`double`** for the real part of the complex number being constructed.
3433
35-
*ImagVal*\
34+
*`ImagVal`*\
3635
The value of type **`double`** for the imaginary part of the complex number being constructed.
3736
38-
*complexNum*\
37+
*`complexNum`*\
3938
The complex number of type **`float`** or of type **`long double`** whose real and imaginary parts are used to initialize a complex number of type **`double`** being constructed.
4039
4140
## Return Value
@@ -46,7 +45,7 @@ A complex number of type **`double`**.
4645
4746
The explicit specialization of the class template complex to a complex class of type **`double`** differs from the class template only in the constructors it defines. The conversion from **`float`** to **`double`** is allowed to be implicit, but the conversion from **`long double`** to **`double`** is required to be **`explicit`**. The use of **`explicit`** rules out the initiation with type conversion using assignment syntax.
4847
49-
For more information on the class template `complex`, see [complex Class](../standard-library/complex-class.md). For a list of members of the class template `complex`, see .
48+
For more information on the class template `complex` and its members, see [`complex` Class](complex-class.md).
5049
5150
## Example
5251
@@ -105,11 +104,11 @@ arg ( c3 ) = 0.896055 radians, which is 51.3402 degrees.
105104

106105
## Requirements
107106

108-
**Header**: \<complex>
107+
**Header**: `<complex>`
109108

110-
**Namespace:** std
109+
**Namespace:** `std`
111110

112111
## See also
113112

114-
[complex Class](../standard-library/complex-class.md)\
115-
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md)
113+
[`complex` Class](complex-class.md)\
114+
[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md)

docs/standard-library/complex-float.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
description: "Learn more about: complex<float>"
32
title: "complex<float>"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: complex<float>"
4+
ms.date: 11/04/2016
55
f1_keywords: ["complex/std::complex<float>"]
66
helpviewer_keywords: ["complex<float> function"]
7-
ms.assetid: 1178eb1e-39bd-4017-89cd-aea95f813939
87
---
98
# `complex<float>`
109

@@ -34,13 +33,13 @@ constexpr complex(
3433
3534
### Parameters
3635
37-
*_RealVal*\
36+
*`_RealVal`*\
3837
The value of type **`float`** for the real part of the complex number being constructed.
3938
40-
*_ImagVal*\
39+
*`_ImagVal`*\
4140
The value of type **`float`** for the imaginary part of the complex number being constructed.
4241
43-
*complexNum*\
42+
*`complexNum`*\
4443
The complex number of type **`double`** or of type **`long double`** whose real and imaginary parts are used to initialize a complex number of type **`float`** being constructed.
4544
4645
## Return Value
@@ -51,7 +50,7 @@ A complex number of type **`float`**.
5150
5251
The explicit specialization of the class template complex to a complex class of type **`float`** differs from the class template only in the constructors it defines. The conversion from **`float`** to **`double`** is allowed to be implicit, but the less safe conversion from **`float`** to **`long double`** is required to be **`explicit`**. The use of **`explicit`** rules out the initiation with type conversion using assignment syntax.
5352
54-
For more information on the class template `complex`, see [complex Class](../standard-library/complex-class.md). For a list of members of the class template `complex`, see .
53+
For more information on the class template `complex` and its members, see [`complex` Class](complex-class.md).
5554
5655
## Example
5756
@@ -111,11 +110,11 @@ arg ( c3 ) = 0.927295 radians, which is 53.1301 degrees.
111110

112111
## Requirements
113112

114-
**Header**: \<complex>
113+
**Header**: `<complex>`
115114

116-
**Namespace:** std
115+
**Namespace:** `std`
117116

118117
## See also
119118

120-
[complex Class](../standard-library/complex-class.md)\
121-
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md)
119+
[`complex` Class](complex-class.md)\
120+
[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md)

docs/standard-library/complex-long-double.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
description: "Learn more about: complex<long double>"
32
title: "complex<long double>"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: complex<long double>"
4+
ms.date: 11/04/2016
55
f1_keywords: ["std::complex<long double>", "complex<long double>", "std.complex<long double>"]
66
helpviewer_keywords: ["complex<long double> function"]
7-
ms.assetid: 37591991-b385-46e9-b727-d534dbc10432
87
---
98
# `complex<long double>`
109

@@ -29,13 +28,13 @@ complex(
2928
3029
### Parameters
3130
32-
*_RealVal*\
31+
*`_RealVal`*\
3332
The value of type **`long double`** for the real part of the complex number being constructed.
3433
35-
*_ImagVal*\
34+
*`_ImagVal`*\
3635
The value of type **`long double`** for the imaginary part of the complex number being constructed.
3736
38-
*complexNum*\
37+
*`complexNum`*\
3938
The complex number of type **`double`** or of type **`float`** whose real and imaginary parts are used to initialize a complex number of type **`long double`** being constructed.
4039
4140
## Return Value
@@ -46,7 +45,7 @@ A complex number of type **`long double`**.
4645
4746
The explicit specialization of the class template `complex` to a complex class of type **`long double`** differs from the class template only in the constructors it defines. The conversion from **`long double`** to **`float`** is allowed to be implicit, but the conversion from **`double`** to **`long double`** is required to be **`explicit`**. The use of **`explicit`** rules out the initiation with type conversion using assignment syntax.
4847
49-
For more information on the class template `complex` and its members, see [complex Class](../standard-library/complex-class.md).
48+
For more information on the class template `complex` and its members, see [`complex` Class](complex-class.md).
5049
5150
**Microsoft-specific**: The **`long double`** and **`double`** types have the same representation, but are distinct types. For more information, see [Built-in types](../cpp/fundamental-types-cpp.md).
5251
@@ -108,11 +107,11 @@ arg( c3 ) = 0.927295 radians, which is 53.1301 degrees.
108107

109108
## Requirements
110109

111-
**Header**: \<complex>
110+
**Header**: `<complex>`
112111

113-
**Namespace:** std
112+
**Namespace:** `std`
114113

115114
## See also
116115

117-
[complex Class](../standard-library/complex-class.md)\
118-
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md)
116+
[`complex` Class](complex-class.md)\
117+
[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md)

0 commit comments

Comments
 (0)