1//===---------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===---------------------------------------------------------------------===//
8
9#ifndef _LIBCPP___FWD_TUPLE_H
10#define _LIBCPP___FWD_TUPLE_H
11
12#include <__config>
13#include <cstddef>
14
15#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
16# pragma GCC system_header
17#endif
18
19_LIBCPP_BEGIN_NAMESPACE_STD
20
21template <size_t, class>
22struct _LIBCPP_TEMPLATE_VIS tuple_element;
23
24#ifndef _LIBCPP_CXX03_LANG
25
26template <class...>
27class _LIBCPP_TEMPLATE_VIS tuple;
28
29template <class>
30struct _LIBCPP_TEMPLATE_VIS tuple_size;
31
32template <size_t _Ip, class... _Tp>
33_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 typename tuple_element<_Ip, tuple<_Tp...> >::type&
34get(tuple<_Tp...>&) _NOEXCEPT;
35
36template <size_t _Ip, class... _Tp>
37_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const typename tuple_element<_Ip, tuple<_Tp...> >::type&
38get(const tuple<_Tp...>&) _NOEXCEPT;
39
40template <size_t _Ip, class... _Tp>
41_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 typename tuple_element<_Ip, tuple<_Tp...> >::type&&
42get(tuple<_Tp...>&&) _NOEXCEPT;
43
44template <size_t _Ip, class... _Tp>
45_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const typename tuple_element<_Ip, tuple<_Tp...> >::type&&
46get(const tuple<_Tp...>&&) _NOEXCEPT;
47
48#endif // _LIBCPP_CXX03_LANG
49
50_LIBCPP_END_NAMESPACE_STD
51
52#endif // _LIBCPP___FWD_TUPLE_H
53