brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 9a31b65 Raw
41 lines · c
1// -*- C++ -*-2//===----------------------------------------------------------------------===//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-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCPP___ITERATOR_RANGES_ITERATOR_TRAITS_H11#define _LIBCPP___ITERATOR_RANGES_ITERATOR_TRAITS_H12 13#include <__config>14#include <__fwd/pair.h>15#include <__ranges/concepts.h>16#include <__type_traits/remove_const.h>17 18#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)19#  pragma GCC system_header20#endif21 22_LIBCPP_BEGIN_NAMESPACE_STD23 24#if _LIBCPP_STD_VER >= 2325 26template <ranges::input_range _Range>27using __range_key_type _LIBCPP_NODEBUG = __remove_const_t<typename ranges::range_value_t<_Range>::first_type>;28 29template <ranges::input_range _Range>30using __range_mapped_type _LIBCPP_NODEBUG = typename ranges::range_value_t<_Range>::second_type;31 32template <ranges::input_range _Range>33using __range_to_alloc_type _LIBCPP_NODEBUG =34    pair<const typename ranges::range_value_t<_Range>::first_type, typename ranges::range_value_t<_Range>::second_type>;35 36#endif37 38_LIBCPP_END_NAMESPACE_STD39 40#endif // _LIBCPP___ITERATOR_RANGES_ITERATOR_TRAITS_H41