зеркало из https://github.com/microsoft/STL.git
214 строки
4.9 KiB
C++
214 строки
4.9 KiB
C++
// Copyright (c) Microsoft Corporation.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
// This file is intended as a test resource for tools that want to verify that they can parse all MSVC++ standard
|
|
// library headers without warnings. This file disables deprecations, so it should not be included in programs directly.
|
|
//
|
|
// This file may be changed, renamed, or removed at any time.
|
|
|
|
#ifndef _MSVC_ALL_PUBLIC_HEADERS_HPP
|
|
#define _MSVC_ALL_PUBLIC_HEADERS_HPP
|
|
|
|
#pragma warning(push)
|
|
#pragma warning(1 : 4668) // 'MEOW' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
|
|
|
|
// All STL headers should protect themselves from macroized new.
|
|
#pragma push_macro("new")
|
|
#undef new
|
|
#define new WILL NOT COMPILE
|
|
|
|
// VSO-768746: mbctype.h macroizes _MS, _MP, _M1, and _M2. Include it first for test coverage.
|
|
#ifndef _MSVC_TESTING_NVCC
|
|
#include <mbctype.h>
|
|
#endif // _MSVC_TESTING_NVCC
|
|
|
|
#if 1 // TRANSITION, OS-17090155 (UCRT)
|
|
#define _CRT_DECLARE_NONSTDC_NAMES 0
|
|
#ifndef _MSVC_TESTING_NVCC
|
|
#include <sys/stat.h>
|
|
#include <sys/timeb.h>
|
|
#include <sys/utime.h>
|
|
#endif // _MSVC_TESTING_NVCC
|
|
#undef _CRT_DECLARE_NONSTDC_NAMES
|
|
#endif // TRANSITION, OS-17090155 (UCRT)
|
|
|
|
#define _SILENCE_CXX17_C_HEADER_DEPRECATION_WARNING
|
|
#define _SILENCE_CXX17_STRSTREAM_DEPRECATION_WARNING
|
|
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
|
|
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
|
|
|
|
#include <algorithm>
|
|
#include <any>
|
|
#include <array>
|
|
#include <bit>
|
|
#include <bitset>
|
|
#include <charconv>
|
|
#include <chrono>
|
|
#include <codecvt>
|
|
#include <compare>
|
|
#include <complex>
|
|
#include <concepts>
|
|
#include <deque>
|
|
#include <exception>
|
|
#include <filesystem>
|
|
#include <forward_list>
|
|
#include <fstream>
|
|
#include <functional>
|
|
#include <hash_map>
|
|
#include <hash_set>
|
|
#include <initializer_list>
|
|
#include <iomanip>
|
|
#include <ios>
|
|
#include <iosfwd>
|
|
#include <iostream>
|
|
#include <istream>
|
|
#include <iterator>
|
|
#include <limits>
|
|
#include <list>
|
|
#include <locale>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <memory_resource>
|
|
#include <new>
|
|
#include <numbers>
|
|
#include <numeric>
|
|
#include <optional>
|
|
#include <ostream>
|
|
#include <queue>
|
|
#include <random>
|
|
#include <ranges>
|
|
#include <ratio>
|
|
#include <regex>
|
|
#include <scoped_allocator>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <stack>
|
|
#include <stdexcept>
|
|
#include <streambuf>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <strstream>
|
|
#include <system_error>
|
|
#include <tuple>
|
|
#include <type_traits>
|
|
#include <typeindex>
|
|
#include <typeinfo>
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
#include <utility>
|
|
#include <valarray>
|
|
#include <variant>
|
|
#include <vector>
|
|
#include <version>
|
|
|
|
#ifndef _M_CEE_PURE
|
|
#include <atomic>
|
|
#endif // _M_CEE_PURE
|
|
|
|
#ifndef _M_CEE
|
|
#include <condition_variable>
|
|
#include <execution>
|
|
#include <future>
|
|
#include <mutex>
|
|
#include <shared_mutex>
|
|
#include <thread>
|
|
#endif // _M_CEE
|
|
|
|
#include <cassert>
|
|
#include <ccomplex>
|
|
#include <cctype>
|
|
#include <cerrno>
|
|
#include <cfenv>
|
|
#include <cfloat>
|
|
#include <cinttypes>
|
|
#include <ciso646>
|
|
#include <climits>
|
|
#include <clocale>
|
|
#include <cmath>
|
|
#include <csetjmp>
|
|
#include <csignal>
|
|
#include <cstdalign>
|
|
#include <cstdarg>
|
|
#include <cstdbool>
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
#include <cstring>
|
|
#include <ctgmath>
|
|
#include <ctime>
|
|
#include <cuchar>
|
|
#include <cwchar>
|
|
#include <cwctype>
|
|
#include <experimental/deque>
|
|
#include <experimental/filesystem>
|
|
#include <experimental/forward_list>
|
|
#include <experimental/list>
|
|
#include <experimental/map>
|
|
#include <experimental/set>
|
|
#include <experimental/string>
|
|
#include <experimental/unordered_map>
|
|
#include <experimental/unordered_set>
|
|
#include <experimental/vector>
|
|
|
|
#ifndef _MSVC_TESTING_NVCC
|
|
#include <assert.h>
|
|
#include <complex.h>
|
|
#include <conio.h>
|
|
#include <crtdbg.h>
|
|
#include <ctype.h>
|
|
#include <direct.h>
|
|
#include <dos.h>
|
|
#include <errno.h>
|
|
#include <excpt.h>
|
|
#include <fcntl.h>
|
|
#include <fenv.h>
|
|
#include <float.h>
|
|
#include <intrin.h>
|
|
#include <inttypes.h>
|
|
#include <io.h>
|
|
#include <iso646.h>
|
|
#include <limits.h>
|
|
#include <locale.h>
|
|
#include <malloc.h>
|
|
#include <math.h>
|
|
#include <mbstring.h>
|
|
#include <memory.h>
|
|
#include <minmax.h>
|
|
#include <new.h>
|
|
#include <process.h>
|
|
#include <safeint.h>
|
|
#include <sal.h>
|
|
#include <search.h>
|
|
#include <setjmp.h>
|
|
#include <share.h>
|
|
#include <signal.h>
|
|
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <sys/locking.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/timeb.h>
|
|
#include <sys/types.h>
|
|
#include <sys/utime.h>
|
|
#include <tchar.h>
|
|
#include <time.h>
|
|
#include <uchar.h>
|
|
#include <wchar.h>
|
|
#include <wctype.h>
|
|
|
|
#ifndef _M_CEE_PURE
|
|
#include <fpieee.h>
|
|
#endif // _M_CEE_PURE
|
|
#endif // _MSVC_TESTING_NVCC
|
|
|
|
#pragma pop_macro("new")
|
|
|
|
#pragma warning(pop)
|
|
|
|
#endif // _MSVC_ALL_PUBLIC_HEADERS_HPP
|