зеркало из https://github.com/microsoft/STL.git
23 строки
833 B
C++
23 строки
833 B
C++
// string_view standard header
|
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
#ifndef _STRING_VIEW_
|
|
#define _STRING_VIEW_
|
|
#include <yvals.h>
|
|
#if _STL_COMPILER_PREPROCESSOR
|
|
|
|
#if !_HAS_CXX17
|
|
_EMIT_STL_WARNING(STL4038, "The contents of <string_view> are available only with C++17 or later.");
|
|
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
|
|
#ifdef _LEGACY_CODE_ASSUMES_STRING_VIEW_INCLUDES_XSTRING
|
|
#include <xstring>
|
|
#else // ^^^ defined(_LEGACY_CODE_ASSUMES_STRING_VIEW_INCLUDES_XSTRING) /
|
|
// !defined(_LEGACY_CODE_ASSUMES_STRING_VIEW_INCLUDES_XSTRING) vvv
|
|
#include <__msvc_string_view.hpp>
|
|
#endif // ^^^ !defined(_LEGACY_CODE_ASSUMES_STRING_VIEW_INCLUDES_XSTRING) ^^^
|
|
#endif // ^^^ _HAS_CXX17 ^^^
|
|
#endif // _STL_COMPILER_PREPROCESSOR
|
|
#endif // _STRING_VIEW_
|