Debian Codegraph @

libcxx/include/__cxx03/__tuple/tuple_size.h

raw
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___CXX03___TUPLE_TUPLE_SIZE_H
10 #define _LIBCPP___CXX03___TUPLE_TUPLE_SIZE_H
11
12 #include <__cxx03/__config>
13 #include <__cxx03/__fwd/tuple.h>
14 #include <__cxx03/__tuple/tuple_types.h>
15 #include <__cxx03/__type_traits/is_const.h>
16 #include <__cxx03/__type_traits/is_volatile.h>
17 #include <__cxx03/cstddef>
18
19 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
20 # pragma GCC system_header
21 #endif
22
23 _LIBCPP_BEGIN_NAMESPACE_STD
24
25 template <class _Tp>
26 struct _LIBCPP_TEMPLATE_VIS tuple_size;
27
28 template <class _Tp>
29 struct _LIBCPP_TEMPLATE_VIS tuple_size<const _Tp> : public tuple_size<_Tp> {};
30 template <class _Tp>
31 struct _LIBCPP_TEMPLATE_VIS tuple_size<volatile _Tp> : public tuple_size<_Tp> {};
32 template <class _Tp>
33 struct _LIBCPP_TEMPLATE_VIS tuple_size<const volatile _Tp> : public tuple_size<_Tp> {};
34
35 _LIBCPP_END_NAMESPACE_STD
36
37 #endif // _LIBCPP___CXX03___TUPLE_TUPLE_SIZE_H