Home
last modified time | relevance | path

Searched refs:tuple_size (Results 1 – 25 of 64) sorted by relevance

123

/llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.decomp/
H A Dp3.cpp10 namespace std { template<typename T> struct tuple_size; }
14 template<> struct std::tuple_size<Bad1> {}; struct in std
18 template<> struct std::tuple_size<Bad2> { const int value = 5; }; struct in std
21 template<> struct std::tuple_size<A> { static const int value = 3; }; struct in std
22 template<> struct std::tuple_size<B> { enum { value = 3 }; }; argument
63 template<typename T> struct std::tuple_size<const T> : std::tuple_size<T> {}; struct in std
131 template<> struct std::tuple_size<C> { static const int value = 1; }; argument
151 template<> struct std::tuple_size<D> { static const int value = 1; }; argument
161 template<> struct std::tuple_size<E> { static const int value = 1; }; argument
184 struct std::tuple_size<wrap<ET, GTL, GTR>> { struct in std
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/
H A Dtuple_size_incomplete.fail.cpp28 struct std::tuple_size<Dummy1> { struct in std
34 struct std::tuple_size<Dummy2> { argument
40 struct std::tuple_size<Dummy3> {}; struct in std
48 (void)std::tuple_size<const Dummy1>::value; // expected-note {{here}} in main()
54 (void)std::tuple_size<const Dummy2>::value; // expected-note {{here}} in main()
60 (void)std::tuple_size<const Dummy3>::value; // expected-note {{here}} in main()
H A Dtuple_size.pass.cpp28 std::tuple_size<T> >::value), ""); in test()
30 std::tuple_size<const T> >::value), ""); in test()
32 std::tuple_size<volatile T> >::value), ""); in test()
34 std::tuple_size<const volatile T> >::value), ""); in test()
H A Dtuple_size_v.pass.cpp25 static_assert(std::tuple_size_v<Tuple> == std::tuple_size<Tuple>::value, ""); in test()
26 static_assert(std::tuple_size_v<Tuple const> == std::tuple_size<Tuple>::value, ""); in test()
27 static_assert(std::tuple_size_v<Tuple volatile> == std::tuple_size<Tuple>::value, ""); in test()
28 static_assert(std::tuple_size_v<Tuple const volatile> == std::tuple_size<Tuple>::value, ""); in test()
H A Dtuple_size.fail.cpp23 …(void)std::tuple_size<std::tuple<> &>::value; // expected-error {{implicit instantiation of undefi… in main()
24 …(void)std::tuple_size<int>::value; // expected-error {{implicit instantiation of undefined templat… in main()
25 …(void)std::tuple_size<std::tuple<>*>::value; // expected-error {{implicit instantiation of undefin… in main()
H A Dtuple.include.utility.pass.cpp30 std::tuple_size<T> >::value), ""); in test()
32 std::tuple_size<const T> >::value), ""); in test()
34 std::tuple_size<volatile T> >::value), ""); in test()
36 std::tuple_size<const volatile T> >::value), ""); in test()
H A Dtuple.include.array.pass.cpp31 std::tuple_size<T> >::value), ""); in test()
33 std::tuple_size<const T> >::value), ""); in test()
35 std::tuple_size<volatile T> >::value), ""); in test()
37 std::tuple_size<const volatile T> >::value), ""); in test()
H A Dtuple.include.ranges.pass.cpp42 static_assert(std::tuple_size<SizedRange>::value == 2);
43 static_assert(std::tuple_size<UnsizedRange>::value == 2);
44 static_assert(std::tuple_size<ThreeElementRange>::value == 2);
H A Dtuple_size_incomplete.pass.cpp25 template <class T, size_t Size = sizeof(std::tuple_size<T>)>
34 template <> struct tuple_size<Dummy1> : public integral_constant<size_t, 0> {}; struct
/llvm-project-15.0.7/libcxx/test/std/utilities/utility/pairs/pair.astuple/
H A Dtuple_size.pass.cpp23 static_assert((std::tuple_size<P1>::value == 2), ""); in main()
27 static_assert((std::tuple_size<P1>::value == 2), ""); in main()
31 static_assert((std::tuple_size<P1>::value == 2), ""); in main()
35 static_assert((std::tuple_size<P1>::value == 2), ""); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/
H A Dforward_as_tuple.pass.cpp26 static_assert(std::tuple_size<Tuple>::value == 0, ""); in test0()
33 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1a()
42 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1b()
51 static_assert(std::tuple_size<Tuple>::value == 2, ""); in test2a()
63 return std::tuple_size<Tuple>::value; in test3()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/array/array.tuple/
H A Dtuple_size.pass.cpp22 static_assert((std::tuple_size<C>::value == N), ""); in test()
26 static_assert((std::tuple_size<C>::value == N), ""); in test()
30 static_assert((std::tuple_size<C>::value == N), ""); in test()
34 static_assert((std::tuple_size<C>::value == N), ""); in test()
/llvm-project-15.0.7/libcxx/test/std/utilities/intseq/intseq.general/
H A Dinteger_seq.pass.cpp59 static_assert ( std::tuple_size<decltype(t3)>::value == int3::size (), "t3 size wrong"); in main()
63 static_assert ( std::tuple_size<decltype(t7)>::value == size7::size (), "t7 size wrong"); in main()
67 static_assert ( std::tuple_size<decltype(t4)>::value == size4::size (), "t4 size wrong"); in main()
71 static_assert ( std::tuple_size<decltype(t2)>::value == size2::size (), "t2 size wrong"); in main()
75 …static_assert ( std::tuple_size<decltype(tintmix)>::value == intmix::size (), "tintmix size wrong"… in main()
79 …static_assert ( std::tuple_size<decltype(tsizemix)>::value == sizemix::size (), "tsizemix size wro… in main()
/llvm-project-15.0.7/libcxx/include/
H A D__tuple24 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS tuple_size;
31 struct _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp<
34 integral_constant<size_t, sizeof(tuple_size<_Tp>)>>>
35 : public integral_constant<size_t, tuple_size<_Tp>::value> {};
38 struct _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp<
41 integral_constant<size_t, sizeof(tuple_size<_Tp>)>>>
47 integral_constant<size_t, sizeof(tuple_size<_Tp>)>>>
51 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS tuple_size<const _Tp> : public tuple_size<_Tp> {};
52 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS tuple_size<volatile _Tp> : public tuple_size<_Tp> …
53 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS tuple_size<const volatile _Tp> : public tuple_size
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dexample-tuple.cpp144 template<typename Tuple> struct tuple_size;
146 template<typename... Values> struct tuple_size<tuple<Values...> > { struct
150 int check_tuple_size_0[tuple_size<tuple<> >::value == 0? 1 : -1]; argument
151 int check_tuple_size_1[tuple_size<tuple<int>>::value == 1? 1 : -1];
152 int check_tuple_size_2[tuple_size<tuple<float, double>>::value == 2? 1 : -1];
153 int check_tuple_size_3[tuple_size<tuple<char, unsigned char, signed char>>::value == 3? 1 : -1];
/llvm-project-15.0.7/clang/test/Analysis/
H A Dlive-bindings-test.cpp7 template <class T> class tuple_size;
9 constexpr size_t tuple_size_v = tuple_size<T>::value;
102 struct tuple_size<Mytuple> struct
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dalias-templates.cpp249 template<typename T> struct tuple_size { static const int value = 0; }; struct
250 …template<typename T> struct tuple_size<EnableTupleSize<const T, decltype(tuple_size<T>::value)>> {… struct
251 …template<typename T> struct tuple_size<EnableTupleSize<volatile T, decltype(tuple_size<T>::value)>… struct
253 tuple_size<const int> t;
H A Dcxx1z-decomposition.cpp11 template<typename> struct tuple_size;
15 template<> struct std::tuple_size<C> { enum { value = 2 }; }; struct in std
/llvm-project-15.0.7/clang/test/CXX/drs/
H A Ddr23xx.cpp101 template <typename T> struct tuple_size;
102 template <> struct std::tuple_size<dr2386::Bad1> {}; struct in std::std
103 template <> struct std::tuple_size<dr2386::Bad2> { struct in std::std
/llvm-project-15.0.7/clang/test/Parser/
H A Ddecomposed-condition.cpp4 template<typename> struct tuple_size;
14 template<> struct tuple_size<Get> { static constexpr int value = 1; }; struct
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dcxx1z-decomposition.cpp5 template<typename> struct tuple_size;
15 template<> struct std::tuple_size<B> { enum { value = 2 }; }; struct in std
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugArangeSet.cpp105 const uint32_t tuple_size = HeaderData.AddrSize * 2; in extract() local
106 if (full_length % tuple_size != 0) in extract()
117 first_tuple_offset += tuple_size; in extract()
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_fdr_log_writer.h27 Index<std::tuple_size<
40 Index >= std::tuple_size<typename std::remove_reference<
61 AggregateSizesImpl<Tuple, std::tuple_size<Tuple>::value - 1>::value;
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFDebugArangeSet.cpp96 const uint32_t tuple_size = m_header.addr_size << 1; in extract() local
99 first_tuple_offset += tuple_size; in extract()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DFormatVariadic.h133 std::array<detail::format_adapter *, std::tuple_size<Tuple>::value>
145 std::array<detail::format_adapter *, std::tuple_size<Tuple>::value>

123