зеркало из https://github.com/microsoft/STL.git
Родитель
d0d724fb91
Коммит
9d635aaef7
|
@ -9,7 +9,9 @@
|
|||
#include <yvals_core.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
|
||||
#if _HAS_CXX17
|
||||
#if !_HAS_CXX17
|
||||
#pragma message("The contents of <any> are available only with C++17 or later.")
|
||||
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
|
||||
#include <initializer_list>
|
||||
#include <type_traits>
|
||||
#include <typeinfo>
|
||||
|
@ -441,8 +443,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
#else // ^^^ _HAS_CXX17 / !_HAS_CXX17 vvv
|
||||
#pragma message("class any is only available with C++17 or later.")
|
||||
#endif // _HAS_CXX17
|
||||
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
#include <yvals.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
|
||||
#if _HAS_CXX17
|
||||
#if !_HAS_CXX17
|
||||
#pragma message("The contents of <charconv> are available only with C++17 or later.")
|
||||
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
|
||||
#include <float.h>
|
||||
#include <intrin0.h>
|
||||
#include <string.h>
|
||||
|
@ -3097,8 +3099,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
#else // ^^^ _HAS_CXX17 / !_HAS_CXX17 vvv
|
||||
#pragma message("The contents of <charconv> are only available with C++17 or later.")
|
||||
#endif // _HAS_CXX17
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
#endif // _CHARCONV_
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
#include <yvals_core.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
|
||||
#if _HAS_CXX20
|
||||
#if !_HAS_CXX20
|
||||
#pragma message("The contents of <compare> are available only with C++20 or later.")
|
||||
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv
|
||||
#include <xtr1common>
|
||||
|
||||
#pragma pack(push, _CRT_PACKING)
|
||||
|
@ -475,8 +477,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
#else // ^^^ C++20 / not C++20 vvv
|
||||
#pragma message("The contents of <compare> are only available with C++20 or later.")
|
||||
#endif // _HAS_CXX20
|
||||
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
#include <yvals_core.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
|
||||
#ifdef __cpp_lib_concepts
|
||||
#ifndef __cpp_lib_concepts
|
||||
#pragma message("The contents of <concepts> are available only with C++20 concepts support.")
|
||||
#else // ^^^ !defined(__cpp_lib_concepts) / defined(__cpp_lib_concepts) vvv
|
||||
#if defined(__clang__) && !defined(_SILENCE_CLANG_CONCEPTS_MESSAGE)
|
||||
#error Despite the presence of some Clang-related bits, this header currently does not support Clang. \
|
||||
You can define _SILENCE_CLANG_CONCEPTS_MESSAGE to silence this message and acknowledge that this is unsupported.
|
||||
|
@ -364,8 +366,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
#else // ^^^ <concepts> supported / <concepts> not supported vvv
|
||||
#pragma message("The contents of <concepts> are only available with C++20 concepts support.")
|
||||
#endif // __cpp_lib_concepts
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
#endif // _CONCEPTS_
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
#include <yvals.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
|
||||
#if _HAS_CXX17
|
||||
#if !_HAS_CXX17
|
||||
#pragma message("The contents of <execution> are available only with C++17 or later.")
|
||||
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
|
||||
#include <algorithm>
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
|
@ -5137,8 +5139,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
#else // ^^^ _HAS_CXX17 / !_HAS_CXX17 vvv
|
||||
#pragma message("Parallel algorithms are only available with C++17 or later.")
|
||||
#endif // _HAS_CXX17
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
#endif // _EXECUTION_
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
#include <yvals_core.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
|
||||
#if _HAS_CXX17
|
||||
#if !_HAS_CXX17
|
||||
#pragma message("The contents of <filesystem> are available only with C++17 or later.")
|
||||
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <cwchar>
|
||||
|
@ -4330,8 +4332,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
#else // ^^^ _HAS_CXX17 / !_HAS_CXX17 vvv
|
||||
#pragma message("The contents of <filesystem> are only available with C++17 or later.")
|
||||
#endif // _HAS_CXX17
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
#endif // _FILESYSTEM_
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
#include <yvals.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
|
||||
#if _HAS_CXX17
|
||||
#if !_HAS_CXX17
|
||||
#pragma message("The contents of <memory_resource> are available only with C++17 or later.")
|
||||
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
|
||||
#include <vector>
|
||||
#include <xbit_ops.h>
|
||||
#include <xpolymorphic_allocator.h>
|
||||
|
@ -755,8 +757,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
#else // ^^^ _HAS_CXX17 / !_HAS_CXX17 vvv
|
||||
#pragma message("The contents of <memory_resource> are only available with C++17 or later.")
|
||||
#endif // _HAS_CXX17
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
#endif // _MEMORY_RESOURCE_
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
#define _OPTIONAL_
|
||||
#include <yvals.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
#if _HAS_CXX17
|
||||
#if !_HAS_CXX17
|
||||
#pragma message("The contents of <optional> are available only with C++17 or later.")
|
||||
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
|
||||
#include <exception>
|
||||
#include <initializer_list>
|
||||
#include <type_traits>
|
||||
|
@ -637,8 +639,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
#else // ^^^ _HAS_CXX17 / !_HAS_CXX17 vvv
|
||||
#pragma message("class template optional is only available with C++17 or later.")
|
||||
#endif // _HAS_CXX17
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
#endif // _OPTIONAL_
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
#define _RANGES_
|
||||
#include <yvals_core.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
#ifdef __cpp_lib_concepts
|
||||
#ifndef __cpp_lib_concepts
|
||||
#pragma message("The contents of <ranges> are available only with C++20 concepts support.")
|
||||
#else // ^^^ !defined(__cpp_lib_concepts) / defined(__cpp_lib_concepts) vvv
|
||||
#include <iterator>
|
||||
|
||||
#pragma pack(push, _CRT_PACKING)
|
||||
|
@ -34,8 +36,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
#else // ^^^ Concepts support / no Concepts vvv
|
||||
#pragma message("The contents of <ranges> are only available with C++20 concepts support.")
|
||||
#endif // __cpp_lib_concepts
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
#endif // _RANGES_
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
#include <yvals.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
|
||||
#if _HAS_CXX17
|
||||
#if !_HAS_CXX17
|
||||
#pragma message("The contents of <string_view> are available only with C++17 or later.")
|
||||
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
|
||||
#include <xstring>
|
||||
#else // ^^^ _HAS_CXX17 / !_HAS_CXX17 vvv
|
||||
#pragma message("string_view is only available with C++17 or later.")
|
||||
#endif // _HAS_CXX17
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
#endif // _STRING_VIEW_
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
#include <yvals.h>
|
||||
#if _STL_COMPILER_PREPROCESSOR
|
||||
|
||||
#if _HAS_CXX17
|
||||
#if !_HAS_CXX17
|
||||
#pragma message("The contents of <variant> are available only with C++17 or later.")
|
||||
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
|
||||
#include <exception>
|
||||
#include <initializer_list>
|
||||
#include <type_traits>
|
||||
|
@ -1749,9 +1751,6 @@ _STD_END
|
|||
_STL_RESTORE_CLANG_WARNINGS
|
||||
#pragma warning(pop)
|
||||
#pragma pack(pop)
|
||||
|
||||
#else // ^^^ _HAS_CXX17 ^^^ / vvv !_HAS_CXX17 vvv
|
||||
#pragma message("class template variant is only available with C++17 or later.")
|
||||
#endif // _HAS_CXX17
|
||||
#endif // _STL_COMPILER_PREPROCESSOR
|
||||
#endif // _VARIANT_
|
||||
|
|
Загрузка…
Ссылка в новой задаче