You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/reference/experimental-module.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ Enables compiler support for Microsoft's experimental form of C++ Standard modul
15
15
16
16
## Remarks
17
17
18
-
This switch was for the time before the new, standardized, way of consuming the C++ Standard Library as modules described in [Import the C++ standard library using modules](../../cpp/tutorial-import-stl-named-module.md) was available. Although you can use this switch to use the older experimental named modules, we recommend that you use the new, standardized, way of consuming the C++ Standard Library as modules described in [Import the C++ standard library using modules](../../cpp/tutorial-import-stl-named-module.md).
18
+
This switch applies to the time before the new, standardized, way of consuming the C++ Standard Library as modules was available. Although you can use this switch to use the older experimental named modules, we recommend that you use the new, standardized, way of consuming the C++ Standard Library as modules described in [Import the C++ standard library using modules](../../cpp/tutorial-import-stl-named-module.md).
19
19
20
-
This compiler became available starting in Visual Studio 2015 Update 1. Ensure that **C++ Modules for v143 build tools (x64/x86 - experimental)**in selected the VS Installer. It's available in the **Individual components** tab of the installer. Search for **experimental** to see the option. For more information, see [Install C and C++ support in Visual Studio](../vscpp-step-0-installation.md).
20
+
This compiler switch is available starting in Visual Studio 2015 Update 1. In the VS Installer under the **Individual components** tab, ensure that **C++ Modules for v143 build tools (x64/x86 - experimental)**is selected. You can use the search box with **experimental** to find it. For more information, see [Install C and C++ support in Visual Studio](../vscpp-step-0-installation.md).
21
21
22
22
| Version | Status |
23
23
|---|---|
@@ -54,6 +54,7 @@ For more information about how to use and create modules, see [Overview of modul
54
54
55
55
## See also
56
56
57
+
[Import the C++ standard library using modules](../../cpp/tutorial-import-stl-named-module.md)\
57
58
[`/headerUnit` (Use header unit IFC)](headerunit.md)\
Copy file name to clipboardExpand all lines: docs/c-runtime-library/floating-point-support.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@ The Universal C Runtime library (UCRT) provides many integral and floating-point
11
11
12
12
For ISO C Standard 11 (C11) and later, the `<tgmath.h>` header, in addition to including `<math.h>` and `<complex.h>`, provides macros that invoke a corresponding math function based on the types of the parameters. See [Type-generic math](tgmath.md) for details.
13
13
14
-
Many of the floating point math library functions have different implementations for different CPU architectures. For example, the 32-bit x86 CRT may have a different implementation than the 64-bit x64 CRT. In addition, some of the functions may have multiple implementations for a given CPU architecture. The most efficient implementation is selected dynamically at run-time depending on the instruction sets supported by the CPU. For example, in the 32-bit x86 CRT, some functions have both an x87 implementation and an SSE2 implementation. When running on a CPU that supports SSE2, the faster SSE2 implementation is used. When running on a CPU that doesn't support SSE2, the slower x87 implementation is used. Because different implementations of the math library functions may use different CPU instructions and different algorithms to produce their results, the functions may produce different results across CPUs. In most cases, the results are within +/-1 ULP of the correctly rounded result, but the actual results may vary across CPUs.
14
+
Many of the floating-point math library functions have different implementations for different CPU architectures. For example, the 32-bit x86 CRT may have a different implementation than the 64-bit x64 CRT. In addition, some of the functions may have multiple implementations for a given CPU architecture. The most efficient implementation is selected dynamically at run-time depending on the instruction sets supported by the CPU. For example, in the 32-bit x86 CRT, some functions have both an x87 implementation and an SSE2 implementation. When running on a CPU that supports SSE2, the faster SSE2 implementation is used. When running on a CPU that doesn't support SSE2, the slower x87 implementation is used. Because different implementations of the math library functions may use different CPU instructions and different algorithms to produce their results, the functions may produce different results across CPUs. In most cases, the results are within +/-1 ULP of the correctly rounded result, but the actual results may vary across CPUs.
15
+
16
+
Newer versions of the UCRT might improve the precision and accuracy of the floating-point math library functions. Since the UCRT is part of the Windows operating system, you might get different results for these functions on different operating system versions or between debug and release builds. Although it is not recommended, you can statically link to the UCRT to guarantee consistent results if you need these functions will produce identical results everywhere.
15
17
16
18
Previous 16-bit versions of Microsoft C/C++ and Microsoft Visual C++ supported the **`long double`** type as an 80-bit precision floating-point data type. In later versions of Visual C++, the **`long double`** data type is a 64-bit precision floating-point data type identical to the **`double`** type. The compiler treats **`long double`** and **`double`** as distinct types, but the **`long double`** functions are identical to their **`double`** counterparts. The CRT provides **`long double`** versions of the math functions for ISO C99 source code compatibility, but note that the binary representation may differ from other compilers.
17
19
@@ -79,7 +81,7 @@ Previous 16-bit versions of Microsoft C/C++ and Microsoft Visual C++ supported t
79
81
|[`imaxabs`](./reference/imaxabs.md)| Computes the absolute value of an integer type |
80
82
|[`imaxdiv`](./reference/imaxdiv.md)| Computes the quotient and the remainder of two integer values |
81
83
|[`isfinite`, `_finite`, `_finitef`](./reference/finite-finitef.md)| Determines whether a value is finite |
82
-
|[`isgreater`, `isgreaterequal`, `isless`, `islessequal`, `islessgreater`, `isunordered`](./reference/floating-point-ordering.md)| Compare the order of two floatingpoint values |
84
+
|[`isgreater`, `isgreaterequal`, `isless`, `islessequal`, `islessgreater`, `isunordered`](./reference/floating-point-ordering.md)| Compare the order of two floating-point values |
83
85
|[`isinf`](./reference/isinf.md)| Determines whether a floating-point value is infinite |
84
86
|[`isnan`, `_isnan`, `_isnanf`](./reference/isnan-isnan-isnanf.md)| Tests a floating-point value for NaN |
85
87
|[`isnormal`](./reference/isnormal.md)| Tests whether a floating-point value is both finite and not subnormal |
Copy file name to clipboardExpand all lines: docs/cpp/import-export-module.md
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ description: Use import and export declarations to access and to publish types a
7
7
---
8
8
# `module`, `import`, `export`
9
9
10
-
The **`module`**, **`import`**, and **`export`** declarations are available in C++20 and require the compiler switch [`/std:c++20`](../build/reference/std-specify-language-standard-version.md) or later (such as **`/std:c++latest`**). For more information, see [Overview of modules in C++](modules-cpp.md).
10
+
The **`module`**, **`import`**, and **`export`** declarations are available in C++20 and require the compiler switch [`/std:c++20`](../build/reference/std-specify-language-standard-version.md) or later. For more information, see [Overview of modules in C++](modules-cpp.md).
11
11
12
12
## `module`
13
13
@@ -43,8 +43,6 @@ namespace ModuleA_NS
43
43
Non-exported names aren't visible to code that imports the module:
44
44
45
45
```cpp
46
-
//MyProgram.cpp
47
-
48
46
import ModuleA;
49
47
50
48
intmain() {
@@ -64,9 +62,8 @@ Use an **`import`** declaration to make a module's names visible in your program
64
62
module ModuleA;
65
63
66
64
#include"custom-lib.h"
67
-
import std.core;
68
-
import std.regex;
69
-
import ModuleB;
65
+
import std;
66
+
import myModule;
70
67
71
68
// begin declarations here:
72
69
template <classT>
@@ -114,4 +111,5 @@ import // Always an identifier, never a keyword
114
111
115
112
## See Also
116
113
117
-
[Overview of modules in C++](modules-cpp.md)
114
+
[Overview of modules in C++](modules-cpp.md)\
115
+
[Import the C++ standard library using modules](tutorial-import-stl-named-module.md)
0 commit comments