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