Skip to content

Commit 2dc23b6

Browse files
author
Colin Robertson
committed
Update deprecated and removed headers in std lib
1 parent 525c1f9 commit 2dc23b6

File tree

5 files changed

+79
-31
lines changed

5 files changed

+79
-31
lines changed

docs/standard-library/ccomplex.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
22
title: "<ccomplex>"
3-
ms.date: "11/04/2016"
4-
f1_keywords: ["<ccomplex>"]
3+
ms.date: "07/11/2019"
4+
f1_keywords: ["<ccomplex>", "ccomplex"]
5+
helpviewer_keywords: ["ccomplex header"]
56
ms.assetid: a9fcb5f0-88e3-464b-a5fd-d1afb8cd7e6f
67
---
78
# &lt;ccomplex&gt;
89

9-
Includes the C++ Standard Library header [\<complex>](../standard-library/complex.md), which effectively includes the Standard C library header \<complex.h> and adds the associated names to the `std` namespace.
10+
Includes the C++ standard library header [\<complex>](complex.md).
11+
12+
> [!NOTE]
13+
> The C standard library \<complex.h> header isn't included by \<ccomplex>, because it's effectively replaced by the C++ overloads in \<complex> and \<cmath>. That makes the \<ccomplex> header redundant. The \<complex.h> header is deprecated in C++. The \<ccomplex> header is deprecated in C++17 and removed in the draft C++20 standard.
1014
1115
## Syntax
1216

@@ -16,11 +20,12 @@ Includes the C++ Standard Library header [\<complex>](../standard-library/comple
1620

1721
## Remarks
1822

19-
Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the `std` namespace.
20-
21-
The name `clog`, which is declared in \<complex.h>, is not defined in the `std` namespace because of potential conflicts with the `clog` that is declared in [\<iostream>](../standard-library/iostream.md).
23+
The name `clog`, which is declared in \<complex.h>, isn't defined in the `std` namespace because of potential conflicts with the `clog` that's declared in [\<iostream>](iostream.md).
2224

2325
## See also
2426

25-
[Header Files Reference](../standard-library/cpp-standard-library-header-files.md)<br/>
26-
[C++ Standard Library Overview](../standard-library/cpp-standard-library-overview.md)<br/>
27+
[\<complex>](complex.md)\
28+
[\<cmath>](cmath.md)\
29+
[Header files reference](cpp-standard-library-header-files.md)\
30+
[C++ standard library overview](cpp-standard-library-overview.md)\
31+
[Thread safety in the C++ standard library](thread-safety-in-the-cpp-standard-library.md)

docs/standard-library/ciso646.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
---
22
title: "&lt;ciso646&gt;"
3-
ms.date: "11/04/2016"
4-
f1_keywords: ["<ciso646>"]
3+
ms.date: "07/11/2019"
4+
f1_keywords: ["<ciso646>", "ciso646"]
55
helpviewer_keywords: ["ciso646 header"]
66
ms.assetid: 9d570924-d299-4225-9a58-8c4c820f5903
77
---
88
# &lt;ciso646&gt;
99

10-
Includes the Standard C library header \<iso646.h> and adds the associated names to the `std` namespace.
10+
Includes the C standard library header \<iso646.h>, and adds the associated names to the `std` namespace.
11+
12+
> [!NOTE]
13+
> Because this compatibility header defines names that are keywords in C++, including it has no effect. The \<iso646.h> header is deprecated in C++. The \<ciso646> header is removed in the draft C++20 standard.
1114
1215
## Syntax
1316

@@ -17,10 +20,10 @@ Includes the Standard C library header \<iso646.h> and adds the associated names
1720

1821
## Remarks
1922

20-
Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the `std` namespace.
23+
Including this header ensures that the names declared using external linkage in the C standard library header are declared in the `std` namespace.
2124

2225
## See also
2326

24-
[Header Files Reference](../standard-library/cpp-standard-library-header-files.md)<br/>
25-
[C++ Standard Library Overview](../standard-library/cpp-standard-library-overview.md)<br/>
26-
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md)<br/>
27+
[Header files reference](cpp-standard-library-header-files.md)\
28+
[C++ standard library overview](cpp-standard-library-overview.md)\
29+
[Thread safety in the C++ standard library](thread-safety-in-the-cpp-standard-library.md)

docs/standard-library/cstdalign.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: "&lt;cstdalign&gt;"
3+
ms.date: "07/11/2019"
4+
f1_keywords: ["<cstdalign>", "cstdalign", "__alignas_is_defined", "__alignof_is_defined"]
5+
helpviewer_keywords: ["cstdalign header", "__alignas_is_defined", "__alignof_is_defined"]
6+
ms.assetid: 9d570924-d299-4225-9a58-8c4c820f5903
7+
---
8+
# &lt;cstdalign&gt;
9+
10+
In some C++ standard library implementations, this header includes the C standard library header \<stdalign.h>, and adds the associated names to the `std` namespace. Because that header isn't implemented in MSVC, the \<cstdalign> header defines compatibility macros `__alignas_is_defined` and `__alignof_is_defined`.
11+
12+
> [!NOTE]
13+
> Because the \<stdalign.h> header defines macros that are keywords in C++, including it has no effect. The \<stdalign.h> header is deprecated in C++. The \<cstdalign> header is deprecated in C++17 and removed in the draft C++20 standard.
14+
15+
## Syntax
16+
17+
```cpp
18+
#include <cstdalign>
19+
```
20+
21+
## Macros
22+
23+
| Macro | Description |
24+
| - | - |
25+
| `__alignas_is_defined` | A C compatibility macro that expands to the integer constant 1. |
26+
| `__alignof_is_defined` | A C compatibility macro that expands to the integer constant 1. |
27+
28+
## See also
29+
30+
[Header files reference](cpp-standard-library-header-files.md)\
31+
[C++ standard library overview](cpp-standard-library-overview.md)\
32+
[Thread safety in the C++ standard library](thread-safety-in-the-cpp-standard-library.md)

docs/standard-library/cstdbool.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
---
22
title: "&lt;cstdbool&gt;"
3-
ms.date: "11/04/2016"
3+
ms.date: "07/11/2019"
4+
f1_keywords: ["<cstdbool>", "cstdbool"]
5+
helpviewer_keywords: ["cstdbool header"]
46
ms.assetid: 44ccb8b2-d808-4715-8097-58ba09ab33ed
57
---
68
# &lt;cstdbool&gt;
79

8-
Includes the Standard C library header \<stdbool.h> and adds the associated names to the `std` namespace.
10+
Includes the C standard library header \<stdbool.h> and adds the associated names to the `std` namespace.
11+
12+
> [!NOTE]
13+
> Because the \<stdbool.h> header defines macros that are keywords in C++, including it has no effect. The \<stdbool.h> header is deprecated in C++. The \<cstdbool> header is deprecated in C++17 and removed in the draft C++20 standard.
914
1015
## Syntax
1116

@@ -15,10 +20,10 @@ Includes the Standard C library header \<stdbool.h> and adds the associated name
1520

1621
## Remarks
1722

18-
Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the `std` namespace.
23+
Including this header ensures that the names declared using external linkage in the C standard library header are declared in the `std` namespace.
1924

2025
## See also
2126

22-
[Header Files Reference](../standard-library/cpp-standard-library-header-files.md)<br/>
23-
[C++ Standard Library Overview](../standard-library/cpp-standard-library-overview.md)<br/>
24-
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md)<br/>
27+
[[Header files reference](cpp-standard-library-header-files.md)\
28+
[C++ standard library overview](cpp-standard-library-overview.md)\
29+
[Thread safety in the C++ standard library](thread-safety-in-the-cpp-standard-library.md)

docs/standard-library/ctgmath.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
---
22
title: "&lt;ctgmath&gt;"
3-
ms.date: "11/04/2016"
3+
ms.date: "07/11/2019"
4+
f1_keywords: ["<ctgmath>", "ctgmath"]
5+
helpviewer_keywords: ["ctgmath header"]
46
ms.assetid: ff521893-f445-4dc8-a2f6-699185bb7024
57
---
68
# &lt;ctgmath&gt;
79

8-
In effect, includes the C++ Standard Library headers \<ccomplex> and \<cmath>, which provide type-generic math macros equivalent to \<tgmath.h>.
10+
In effect, includes the C++ standard library headers \<complex> and \<cmath>, which provide type-generic math macros equivalent to \<tgmath.h>.
11+
12+
> [!NOTE]
13+
> The C standard library \<tgmath.h> header isn't included by \<ctgmath>, because it's effectively replaced by the C++ overloads in \<complex> and \<cmath>. That makes the \<ctgmath> header redundant. The \<tgmath.h> header is deprecated in C++. The \<ctgmath> header is deprecated in C++17 and removed in the draft C++20 standard.
914
1015
## Syntax
1116

@@ -15,14 +20,12 @@ In effect, includes the C++ Standard Library headers \<ccomplex> and \<cmath>, w
1520

1621
## Remarks
1722

18-
The functionality of the Standard C library header \<tgmath.h> is provided by overloads in \<ccomplex> and \<cmath>.
19-
20-
Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the `std` namespace.
23+
The functionality of the C standard library header \<tgmath.h> is provided by the overloads in \<complex> and \<cmath>.
2124

2225
## See also
2326

24-
[\<ccomplex>](../standard-library/ccomplex.md)<br/>
25-
[\<cmath>](../standard-library/cmath.md)<br/>
26-
[Header Files Reference](../standard-library/cpp-standard-library-header-files.md)<br/>
27-
[C++ Standard Library Overview](../standard-library/cpp-standard-library-overview.md)<br/>
28-
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md)<br/>
27+
[\<complex>](complex.md)\
28+
[\<cmath>](cmath.md)\
29+
[Header files reference](cpp-standard-library-header-files.md)\
30+
[C++ standard library overview](cpp-standard-library-overview.md)\
31+
[Thread safety in the C++ standard library](thread-safety-in-the-cpp-standard-library.md)

0 commit comments

Comments
 (0)