Home
last modified time | relevance | path

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

1234

/llvm-project/libcxx/include/__tuple/
H A Dtuple_size.h28 struct _LIBCPP_TEMPLATE_VIS tuple_size;
35 struct _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< const _Tp,
37 integral_constant<size_t, sizeof(tuple_size<_Tp>)>>>
38 : public integral_constant<size_t, tuple_size<_Tp>::value> {};
41 struct _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< volatile _Tp,
43 integral_constant<size_t, sizeof(tuple_size<_Tp>)>>>
44 : public integral_constant<size_t, tuple_size<_Tp>::value> {};
48 tuple_size<__enable_if_tuple_size_imp<const volatile _Tp, integral_constant<size_t, sizeof(tuple_size<_Tp>)>>>
49 : public integral_constant<size_t, tuple_size<_T
26 struct _LIBCPP_TEMPLATE_VIS tuple_size; global() variable
[all...]
H A Dmake_tuple_types.h18 #include <__tuple/tuple_size.h>
34 // _Sp defaults to 0 and _Ep defaults to tuple_size<_Tuple>. If _Tuple is a
56 size_t _Ep = tuple_size<__libcpp_remove_reference_t<_Tp> >::value,
58 bool _SameSize = (_Ep == tuple_size<__libcpp_remove_reference_t<_Tp> >::value)>
/llvm-project/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; }; argument
22 template<> struct std::tuple_size<B> { enum { value = 3 }; }; struct in std
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; }; struct in std
151 template<> struct std::tuple_size<D> { static const int value = 1; }; struct in std
161 template<> struct std::tuple_size<E> { static const int value = 1; }; struct in std
172 template<> struct std::tuple_size<ADL::X> { static const int value = 1; }; argument
[all …]
/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/
H A Dtuple_size_incomplete.verify.cpp28 struct std::tuple_size<Dummy1> { struct in std
34 struct std::tuple_size<Dummy2> { struct in std
40 struct std::tuple_size<Dummy3> {}; struct in std
47 (void)std::tuple_size<const Dummy1>::value; // expected-note {{here}} in f()
53 (void)std::tuple_size<const Dummy2>::value; // expected-note {{here}} in f()
59 (void)std::tuple_size<const Dummy3>::value; // expected-note {{here}} in f()
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.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.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_size.verify.cpp22 …(void)std::tuple_size<std::tuple<> &>::value; // expected-error {{implicit instantiation of undefi… in f()
23 …(void)std::tuple_size<int>::value; // expected-error {{implicit instantiation of undefined templat… in f()
24 …(void)std::tuple_size<std::tuple<>*>::value; // expected-error {{implicit instantiation of undefin… in f()
H A Dtuple.include.ranges.pass.cpp41 static_assert(std::tuple_size<SizedRange>::value == 2);
42 static_assert(std::tuple_size<UnsizedRange>::value == 2);
43 static_assert(std::tuple_size<ThreeElementRange>::value == 2);
H A Dtuple_size_incomplete.pass.cpp14 // struct tuple_size<tuple<Types...>>
26 template <class T, std::size_t Size = sizeof(std::tuple_size<T>)>
35 struct std::tuple_size<Dummy1> : public integral_constant<std::size_t, 0> {}; struct
/llvm-project/clang/test/SemaCXX/
H A Dcxx20-decomposition.cpp82 struct tuple_size;
85 struct tuple_size<T&> : tuple_size<T>{}; struct
88 requires requires { tuple_size<T>::value; }
89 struct tuple_size<const T> : tuple_size<T>{}; struct
92 struct tuple_size<tuple> { struct
93 valuestd::tuple_size global() argument
/llvm-project/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/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/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/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/libcxx/test/std/numerics/complex.number/complex.tuple/
H A Dtuple_size.compile.pass.cpp20 concept HasTupleSize = requires { std::tuple_size<C>{}; };
31 static_assert(std::same_as<typename std::tuple_size<C>::value_type, size_t>); in test()
32 static_assert(std::tuple_size<C>() == 2); in test()
/llvm-project/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/clang/test/SemaTemplate/
H A Dalias-templates.cpp271 template<typename T> struct tuple_size { static const int value = 0; }; struct
272 …template<typename T> struct tuple_size<EnableTupleSize<const T, decltype(tuple_size<T>::value)>> {… struct
273 …template<typename T> struct tuple_size<EnableTupleSize<volatile T, decltype(tuple_size<T>::value)>… struct
275 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/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/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/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/clang/test/CodeGenCXX/
H A Dcxx1z-decomposition.cpp5 template<typename> struct tuple_size;
15 template<> struct std::tuple_size<B> { enum { value = 2 }; }; argument
/llvm-project/clang/test/CXX/drs/
H A Dcwg23xx.cpp383 // Otherwise, if the qualified-id std::tuple_size<E> names a complete class
384 // type **with a member value**, the expression std::tuple_size<E>::value shall
391 template <typename T> struct tuple_size; in foo()
392 template <> struct tuple_size<cwg2386::Bad1> {};
393 template <> struct tuple_size<cwg2386::Bad2> {
288 template <> struct tuple_size<cwg2386::Bad1> {}; global() struct
289 template <> struct tuple_size<cwg2386::Bad2> { global() struct
290 valuestd::tuple_size global() argument

1234