Warning, /include/c++/v1/expected is written in an unsupported language. File is not indexed.
0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009
0010 #ifndef _LIBCPP_EXPECTED
0011 #define _LIBCPP_EXPECTED
0012
0013 /*
0014 Header <expected> synopsis
0015
0016 namespace std {
0017 // [expected.unexpected], class template unexpected
0018 template<class E> class unexpected;
0019
0020 // [expected.bad], class template bad_expected_access
0021 template<class E> class bad_expected_access;
0022
0023 // [expected.bad.void], specialization for void
0024 template<> class bad_expected_access<void>;
0025
0026 // in-place construction of unexpected values
0027 struct unexpect_t {
0028 explicit unexpect_t() = default;
0029 };
0030 inline constexpr unexpect_t unexpect{};
0031
0032 // [expected.expected], class template expected
0033 template<class T, class E> class expected;
0034
0035 // [expected.void], partial specialization of expected for void types
0036 template<class T, class E> requires is_void_v<T> class expected<T, E>;
0037 }
0038
0039 */
0040
0041 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0042 # include <__cxx03/expected>
0043 #else
0044 # include <__config>
0045
0046 # if _LIBCPP_STD_VER >= 23
0047 # include <__expected/bad_expected_access.h>
0048 # include <__expected/expected.h>
0049 # include <__expected/unexpect.h>
0050 # include <__expected/unexpected.h>
0051 # endif
0052
0053 # include <version>
0054
0055 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0056 # pragma GCC system_header
0057 # endif
0058 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0059
0060 #endif // _LIBCPP_EXPECTED