Home | History | Annotate | Line # | Download | only in __ranges
      1 // -*- C++ -*-
      2 //===------------------ __ranges/enable_borrowed_range.h ------------------===//
      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_ENABLE_BORROWED_RANGE_H
     11 #define _LIBCPP___RANGES_ENABLE_BORROWED_RANGE_H
     12 
     13 // These customization variables are used in <span> and <string_view>. The
     14 // separate header is used to avoid including the entire <ranges> header in
     15 // <span> and <string_view>.
     16 
     17 #include <__config>
     18 
     19 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
     20 #pragma GCC system_header
     21 #endif
     22 
     23 _LIBCPP_PUSH_MACROS
     24 #include <__undef_macros>
     25 
     26 _LIBCPP_BEGIN_NAMESPACE_STD
     27 
     28 #if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_RANGES)
     29 
     30 namespace ranges
     31 {
     32 
     33 // [range.range], ranges
     34 
     35 template <class>
     36 inline constexpr bool enable_borrowed_range = false;
     37 
     38 } // namespace ranges
     39 
     40 #endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_RANGES)
     41 
     42 _LIBCPP_END_NAMESPACE_STD
     43 
     44 _LIBCPP_POP_MACROS
     45 
     46 #endif // _LIBCPP___RANGES_ENABLE_BORROWED_RANGE_H
     47