From 698accac4f233efebd9228f43debf8b5df1e77b8 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 16 Jul 2024 20:50:42 +0200 Subject: [PATCH] docs: `import std;` row added to the "C++ compiler support" table --- docs/getting_started/cpp_compiler_support.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/getting_started/cpp_compiler_support.md b/docs/getting_started/cpp_compiler_support.md index f5fd6fab2..006b62f74 100644 --- a/docs/getting_started/cpp_compiler_support.md +++ b/docs/getting_started/cpp_compiler_support.md @@ -18,6 +18,7 @@ C++ feature: | **Minimum support** | 20 | 12 | 16 | 15 | None | | **`std::format`** | 20 | 13 | 17 | None | None | | **C++ modules** | 20 | None | 17 | None | None | +| **`import std;`** | 23 | None | 18 | None | None | | **Static `constexpr` variables in `constexpr` functions** | 23 | 13 | 17 | None | None | | **Explicit `this` parameter** | 23 | 14 | 18 | None | None | @@ -62,6 +63,15 @@ C++ feature: [CMake's documentation](https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html). +## `import std;` + +- If enabled, the library will obtain all the definitions from the `std` namespace via + `import std;` instead of the "old-style" header includes. +- Related build options: + - Conan: [import_std](installation_and_usage.md#import_std) + - CMake: [MP_UNITS_BUILD_IMPORT_STD](installation_and_usage.md#MP_UNITS_BUILD_IMPORT_STD) + + ## Static `constexpr` variables in `constexpr` functions - Allows returning `std::string_view` from the