Warning, /include/c++/v1/__cxx03/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___CXX03_EXPECTED
0011 #define _LIBCPP___CXX03_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 #include <__cxx03/__config>
0042
0043 #if _LIBCPP_STD_VER >= 23
0044 # include <__cxx03/__expected/bad_expected_access.h>
0045 # include <__cxx03/__expected/expected.h>
0046 # include <__cxx03/__expected/unexpect.h>
0047 # include <__cxx03/__expected/unexpected.h>
0048 #endif
0049
0050 #include <__cxx03/version>
0051
0052 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0053 # pragma GCC system_header
0054 #endif
0055
0056 #if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
0057 # include <__cxx03/cstddef>
0058 # include <__cxx03/initializer_list>
0059 # include <__cxx03/new>
0060 #endif
0061
0062 #endif // _LIBCPP___CXX03_EXPECTED