Mark de Wever | af59b2d | 2020-11-24 18:08:02 +0100 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- ranges -----------------------------------===// |
| 3 | // |
| 4 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | // See https://llvm.org/LICENSE.txt for license information. |
| 6 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef _LIBCPP_RANGES |
| 11 | #define _LIBCPP_RANGES |
| 12 | |
| 13 | /* |
| 14 | |
| 15 | #include <compare> // see [compare.syn] |
| 16 | #include <initializer_list> // see [initializer.list.syn] |
| 17 | #include <iterator> // see [iterator.synopsis] |
| 18 | |
| 19 | namespace std::ranges { |
Christopher Di Bella | 66ce129 | 2021-04-11 05:08:32 +0000 | [diff] [blame^] | 20 | inline namespace unspecified { |
| 21 | // [range.access], range access |
| 22 | inline constexpr unspecified begin = unspecified; |
| 23 | inline constexpr unspecified end = unspecified; |
| 24 | inline constexpr unspecified cbegin = unspecified; |
| 25 | inline constexpr unspecified cend = unspecified; |
| 26 | } |
| 27 | |
Mark de Wever | af59b2d | 2020-11-24 18:08:02 +0100 | [diff] [blame] | 28 | // [range.range], ranges |
| 29 | template<class T> |
| 30 | inline constexpr bool enable_borrowed_range = false; |
Christopher Di Bella | 66ce129 | 2021-04-11 05:08:32 +0000 | [diff] [blame^] | 31 | |
| 32 | template<class T> |
| 33 | using iterator_t = decltype(ranges::begin(declval<T&>())); |
Mark de Wever | af59b2d | 2020-11-24 18:08:02 +0100 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | */ |
| 37 | |
| 38 | #include <__config> |
Christopher Di Bella | 66ce129 | 2021-04-11 05:08:32 +0000 | [diff] [blame^] | 39 | #include <__ranges/access.h> |
Mark de Wever | af59b2d | 2020-11-24 18:08:02 +0100 | [diff] [blame] | 40 | #include <__ranges/enable_borrowed_range.h> |
| 41 | #include <compare> // Required by the standard. |
| 42 | #include <initializer_list> // Required by the standard. |
| 43 | #include <iterator> // Required by the standard. |
| 44 | #include <type_traits> |
| 45 | #include <version> |
| 46 | |
| 47 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 48 | #pragma GCC system_header |
| 49 | #endif |
| 50 | |
| 51 | _LIBCPP_PUSH_MACROS |
| 52 | #include <__undef_macros> |
| 53 | |
| 54 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 55 | |
| 56 | #if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_RANGES) |
| 57 | |
| 58 | #endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_RANGES) |
| 59 | |
| 60 | _LIBCPP_END_NAMESPACE_STD |
| 61 | |
| 62 | _LIBCPP_POP_MACROS |
| 63 | |
| 64 | #endif // _LIBCPP_RANGES |