Skip to content

Fix dangling "see ..." and clean up complex class template specializations #5476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions docs/standard-library/complex-double.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: complex<double>"
title: "complex<double>"
ms.date: "11/04/2016"
description: "Learn more about: complex<double>"
ms.date: 11/04/2016
f1_keywords: ["complex/std::complex<double>"]
helpviewer_keywords: ["complex<double> function"]
ms.assetid: 0d0b9d2a-9b9b-410b-82a0-86b6df127e47
---
# `complex<double>`

Expand All @@ -29,13 +28,13 @@ constexpr explicit complex(const complex<long double>& complexNum);

### Parameters

*RealVal*\
*`RealVal`*\
The value of type **`double`** for the real part of the complex number being constructed.

*ImagVal*\
*`ImagVal`*\
The value of type **`double`** for the imaginary part of the complex number being constructed.

*complexNum*\
*`complexNum`*\
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.

## Return Value
Expand All @@ -46,7 +45,7 @@ A complex number of type **`double`**.

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.

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 .
For more information on the class template `complex` and its members, see [`complex` Class](complex-class.md).

## Example

Expand Down Expand Up @@ -105,11 +104,11 @@ arg ( c3 ) = 0.896055 radians, which is 51.3402 degrees.

## Requirements

**Header**: \<complex>
**Header**: `<complex>`

**Namespace:** std
**Namespace:** `std`

## See also

[complex Class](../standard-library/complex-class.md)\
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md)
[`complex` Class](complex-class.md)\
[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md)
21 changes: 10 additions & 11 deletions docs/standard-library/complex-float.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: complex<float>"
title: "complex<float>"
ms.date: "11/04/2016"
description: "Learn more about: complex<float>"
ms.date: 11/04/2016
f1_keywords: ["complex/std::complex<float>"]
helpviewer_keywords: ["complex<float> function"]
ms.assetid: 1178eb1e-39bd-4017-89cd-aea95f813939
---
# `complex<float>`

Expand Down Expand Up @@ -34,13 +33,13 @@ constexpr complex(

### Parameters

*_RealVal*\
*`_RealVal`*\
The value of type **`float`** for the real part of the complex number being constructed.

*_ImagVal*\
*`_ImagVal`*\
The value of type **`float`** for the imaginary part of the complex number being constructed.

*complexNum*\
*`complexNum`*\
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.

## Return Value
Expand All @@ -51,7 +50,7 @@ A complex number of type **`float`**.

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.

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 .
For more information on the class template `complex` and its members, see [`complex` Class](complex-class.md).

## Example

Expand Down Expand Up @@ -111,11 +110,11 @@ arg ( c3 ) = 0.927295 radians, which is 53.1301 degrees.

## Requirements

**Header**: \<complex>
**Header**: `<complex>`

**Namespace:** std
**Namespace:** `std`

## See also

[complex Class](../standard-library/complex-class.md)\
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md)
[`complex` Class](complex-class.md)\
[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md)
21 changes: 10 additions & 11 deletions docs/standard-library/complex-long-double.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: complex<long double>"
title: "complex<long double>"
ms.date: "11/04/2016"
description: "Learn more about: complex<long double>"
ms.date: 11/04/2016
f1_keywords: ["std::complex<long double>", "complex<long double>", "std.complex<long double>"]
helpviewer_keywords: ["complex<long double> function"]
ms.assetid: 37591991-b385-46e9-b727-d534dbc10432
---
# `complex<long double>`

Expand All @@ -29,13 +28,13 @@ complex(

### Parameters

*_RealVal*\
*`_RealVal`*\
The value of type **`long double`** for the real part of the complex number being constructed.

*_ImagVal*\
*`_ImagVal`*\
The value of type **`long double`** for the imaginary part of the complex number being constructed.

*complexNum*\
*`complexNum`*\
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.

## Return Value
Expand All @@ -46,7 +45,7 @@ A complex number of type **`long double`**.

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.

For more information on the class template `complex` and its members, see [complex Class](../standard-library/complex-class.md).
For more information on the class template `complex` and its members, see [`complex` Class](complex-class.md).

**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).

Expand Down Expand Up @@ -108,11 +107,11 @@ arg( c3 ) = 0.927295 radians, which is 53.1301 degrees.

## Requirements

**Header**: \<complex>
**Header**: `<complex>`

**Namespace:** std
**Namespace:** `std`

## See also

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