/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | forward_as_tuple.pass.cpp | 23 template <class Tuple> 25 test0(const Tuple&) in test0() argument 27 static_assert(std::tuple_size<Tuple>::value == 0, ""); in test0() 30 template <class Tuple> 32 test1a(const Tuple& t) in test1a() 34 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1a() 35 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&&>::value, ""); in test1a() 39 template <class Tuple> 41 test1b(const Tuple& t) in test1b() 43 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1b() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | forward_as_tuple.pass.cpp | 22 template <class Tuple> 24 test0(const Tuple&) in test0() argument 26 static_assert(std::tuple_size<Tuple>::value == 0, ""); in test0() 29 template <class Tuple> 31 test1a(const Tuple& t) in test1a() 33 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1a() 34 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&&>::value, ""); in test1a() 38 template <class Tuple> 40 test1b(const Tuple& t) in test1b() 42 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1b() [all …]
|
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/ |
D | make_from_tuple.pass.cpp | 28 template <class Tuple> 33 Tuple args; 39 template <template <class ...> class Tuple, class ...Types> 40 struct ConstructibleFromTuple<Tuple<Types...>> { 46 Tuple<std::decay_t<Types>...> args; 61 template <class Tuple> 62 constexpr bool do_constexpr_test(Tuple&& tup) { in do_constexpr_test() 63 using RawTuple = std::decay_t<Tuple>; in do_constexpr_test() 65 return std::make_from_tuple<Tp>(std::forward<Tuple>(tup)).args == tup; in do_constexpr_test() 74 template <class ...ExpectTypes, class Tuple> [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/ |
D | make_from_tuple.pass.cpp | 29 template <class Tuple> 34 Tuple args; 40 template <template <class ...> class Tuple, class ...Types> 41 struct ConstructibleFromTuple<Tuple<Types...>> { 47 Tuple<std::decay_t<Types>...> args; 62 template <class Tuple> 63 constexpr bool do_constexpr_test(Tuple&& tup) { in do_constexpr_test() 64 using RawTuple = std::decay_t<Tuple>; in do_constexpr_test() 66 return std::make_from_tuple<Tp>(std::forward<Tuple>(tup)).args == tup; in do_constexpr_test() 75 template <class ...ExpectTypes, class Tuple> [all …]
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorSyclTuple.h | 40 struct Tuple {}; 47 struct Tuple<T, Ts...> { 48 Tuple(T t, Ts... ts) : head(t), tail(ts...) {} 50 Tuple<Ts...> tail; 64 struct ElemTypeHolder<0, Tuple<T, Ts...> > { 75 struct ElemTypeHolder<k, Tuple<T, Ts...> > { 76 typedef typename ElemTypeHolder<k - 1, Tuple<Ts...> >::type type; 88 typename StaticIf<k == 0, CVQual typename ElemTypeHolder<0, Tuple<Ts...> >::type &>::type \ 89 get(CVQual Tuple<Ts...> &t) { \ 106 typename StaticIf<k != 0, CVQual typename ElemTypeHolder<k, Tuple<T, Ts...> >::type &>::type \ [all …]
|
/external/starlark-go/starlark/ |
D | library.go | 164 func all(thread *Thread, _ *Builtin, args Tuple, kwargs []Tuple) (Value, error) { argument 181 func any(thread *Thread, _ *Builtin, args Tuple, kwargs []Tuple) (Value, error) { argument 198 func bool_(thread *Thread, _ *Builtin, args Tuple, kwargs []Tuple) (Value, error) { argument 207 func bytes_(thread *Thread, _ *Builtin, args Tuple, kwargs []Tuple) (Value, error) { argument 246 func chr(thread *Thread, _ *Builtin, args Tuple, kwargs []Tuple) (Value, error) { argument 267 func dict(thread *Thread, _ *Builtin, args Tuple, kwargs []Tuple) (Value, error) { argument 279 func dir(thread *Thread, _ *Builtin, args Tuple, kwargs []Tuple) (Value, error) { argument 300 func enumerate(thread *Thread, _ *Builtin, args Tuple, kwargs []Tuple) (Value, error) { argument 316 array := make(Tuple, 2*n) // allocate a single backing array 327 pair := Tuple{MakeInt(start + i), x} [all …]
|
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | enable_reduced_arity_initialization_extension.pass.cpp | 44 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 45 static_assert(!std::is_constructible<Tuple, MO>::value, ""); in test_default_constructible_extension_sfinae() 46 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae() 47 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae() 50 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 51 static_assert(!std::is_constructible<Tuple, MO, MO>::value, ""); in test_default_constructible_extension_sfinae() 52 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae() 53 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae() 57 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 58 typedef std::tuple<MO, Tuple, MO, MO> NestedTuple; in test_default_constructible_extension_sfinae() [all …]
|
D | disable_reduced_arity_initialization_extension.pass.cpp | 45 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 46 static_assert(!std::is_constructible<Tuple, MO>::value, ""); in test_default_constructible_extension_sfinae() 47 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae() 48 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae() 51 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 52 static_assert(!std::is_constructible<Tuple, MO, MO>::value, ""); in test_default_constructible_extension_sfinae() 53 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae() 54 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae() 58 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 59 typedef std::tuple<MO, Tuple, MO, MO> NestedTuple; in test_default_constructible_extension_sfinae() [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
D | tuple_size_v.pass.cpp | 20 template <class Tuple, int Expect> 23 static_assert(std::tuple_size_v<Tuple> == Expect, ""); in test() 24 static_assert(std::tuple_size_v<Tuple> == std::tuple_size<Tuple>::value, ""); in test() 25 static_assert(std::tuple_size_v<Tuple const> == std::tuple_size<Tuple>::value, ""); in test() 26 static_assert(std::tuple_size_v<Tuple volatile> == std::tuple_size<Tuple>::value, ""); in test() 27 static_assert(std::tuple_size_v<Tuple const volatile> == std::tuple_size<Tuple>::value, ""); in test()
|
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
D | tuple_size_v.pass.cpp | 21 template <class Tuple, int Expect> 24 static_assert(std::tuple_size_v<Tuple> == Expect, ""); in test() 25 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()
|
/external/llvm-project/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | enable_reduced_arity_initialization_extension.pass.cpp | 43 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 44 static_assert(!std::is_constructible<Tuple, MO>::value, ""); in test_default_constructible_extension_sfinae() 45 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae() 46 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae() 49 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 50 static_assert(!std::is_constructible<Tuple, MO, MO>::value, ""); in test_default_constructible_extension_sfinae() 51 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae() 52 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae() 56 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 57 typedef std::tuple<MO, Tuple, MO, MO> NestedTuple; in test_default_constructible_extension_sfinae() [all …]
|
D | disable_reduced_arity_initialization_extension.pass.cpp | 44 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 45 static_assert(!std::is_constructible<Tuple, MO>::value, ""); in test_default_constructible_extension_sfinae() 46 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae() 47 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae() 50 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 51 static_assert(!std::is_constructible<Tuple, MO, MO>::value, ""); in test_default_constructible_extension_sfinae() 52 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae() 53 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae() 57 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae() typedef 58 typedef std::tuple<MO, Tuple, MO, MO> NestedTuple; in test_default_constructible_extension_sfinae() [all …]
|
/external/libchrome/base/ |
D | tuple.h | 47 template <typename ObjT, typename Method, typename Tuple, size_t... Ns> 50 Tuple&& args, in DispatchToMethodImpl() 52 (obj->*method)(std::get<Ns>(std::forward<Tuple>(args))...); in DispatchToMethodImpl() 55 template <typename ObjT, typename Method, typename Tuple> 58 Tuple&& args) { in DispatchToMethod() 59 constexpr size_t size = std::tuple_size<std::decay_t<Tuple>>::value; in DispatchToMethod() 60 DispatchToMethodImpl(obj, method, std::forward<Tuple>(args), in DispatchToMethod() 66 template <typename Function, typename Tuple, size_t... Ns> 68 Tuple&& args, in DispatchToFunctionImpl() 70 (*function)(std::get<Ns>(std::forward<Tuple>(args))...); in DispatchToFunctionImpl() [all …]
|
/external/llvm-project/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/ |
D | p12.cpp | 7 template<class ...> struct Tuple { }; struct 8 template<class ... Types> int &g(Tuple<Types ...>); // #1 9 template<class T1, class ... Types> float &g(Tuple<T1, Types ...>); // #2 10 template<class T1, class ... Types> double &g(Tuple<T1, Types& ...>); // #3 13 int &ir1 = g(Tuple<>()); in test_g() 14 float &fr1 = g(Tuple<int, float>()); in test_g() 15 double &dr1 = g(Tuple<int, float&>()); in test_g() 16 double &dr2 = g(Tuple<int>()); in test_g()
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/ |
D | p12.cpp | 7 template<class ...> struct Tuple { }; struct 8 template<class ... Types> int &g(Tuple<Types ...>); // #1 9 template<class T1, class ... Types> float &g(Tuple<T1, Types ...>); // #2 10 template<class T1, class ... Types> double &g(Tuple<T1, Types& ...>); // #3 13 int &ir1 = g(Tuple<>()); in test_g() 14 float &fr1 = g(Tuple<int, float>()); in test_g() 15 double &dr1 = g(Tuple<int, float&>()); in test_g() 16 double &dr2 = g(Tuple<int>()); in test_g()
|
/external/pigweed/pw_protobuf/py/pw_protobuf/ |
D | codegen_pwpb.py | 20 from typing import Dict, Iterable, List, Tuple 68 def params(self) -> List[Tuple[str, str]]: 134 def params(self) -> List[Tuple[str, str]]: 170 def params(self) -> List[Tuple[str, str]]: 207 def params(self) -> List[Tuple[str, str]]: 216 def params(self) -> List[Tuple[str, str]]: 225 def params(self) -> List[Tuple[str, str]]: 234 def params(self) -> List[Tuple[str, str]]: 243 def params(self) -> List[Tuple[str, str]]: 252 def params(self) -> List[Tuple[str, str]]: [all …]
|
/external/angle/third_party/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 241 std::get<Indexes>(absl::forward<Tuple>(t))...)) { 244 std::get<Indexes>(absl::forward<Tuple>(t))...); 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 293 typename std::remove_reference<Tuple>::type>::value>{})) { 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 297 typename std::remove_reference<Tuple>::type>::value>{}); [all …]
|
/external/openscreen/third_party/abseil/src/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 241 std::get<Indexes>(absl::forward<Tuple>(t))...)) { 244 std::get<Indexes>(absl::forward<Tuple>(t))...); 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 293 typename std::remove_reference<Tuple>::type>::value>{})) { 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 297 typename std::remove_reference<Tuple>::type>::value>{}); [all …]
|
/external/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 241 std::get<Indexes>(absl::forward<Tuple>(t))...)) { 244 std::get<Indexes>(absl::forward<Tuple>(t))...); 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 293 typename std::remove_reference<Tuple>::type>::value>{})) { 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 297 typename std::remove_reference<Tuple>::type>::value>{}); [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 241 std::get<Indexes>(absl::forward<Tuple>(t))...)) { 244 std::get<Indexes>(absl::forward<Tuple>(t))...); 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 293 typename std::remove_reference<Tuple>::type>::value>{})) { 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 297 typename std::remove_reference<Tuple>::type>::value>{}); [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 241 std::get<Indexes>(absl::forward<Tuple>(t))...)) { 244 std::get<Indexes>(absl::forward<Tuple>(t))...); 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 293 typename std::remove_reference<Tuple>::type>::value>{})) { 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 297 typename std::remove_reference<Tuple>::type>::value>{}); [all …]
|
/external/libtextclassifier/abseil-cpp/absl/utility/ |
D | utility.h | 237 template <typename Functor, typename Tuple, std::size_t... Indexes> 238 auto apply_helper(Functor&& functor, Tuple&& t, index_sequence<Indexes...>) 241 std::get<Indexes>(absl::forward<Tuple>(t))...)) { 244 std::get<Indexes>(absl::forward<Tuple>(t))...); 288 template <typename Functor, typename Tuple> 289 auto apply(Functor&& functor, Tuple&& t) 291 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 293 typename std::remove_reference<Tuple>::type>::value>{})) { 295 absl::forward<Functor>(functor), absl::forward<Tuple>(t), 297 typename std::remove_reference<Tuple>::type>::value>{}); [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | UTypes.pass.cpp | 47 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef 50 Tuple, in test_default_constructible_extension_sfinae() 55 Tuple, in test_default_constructible_extension_sfinae() 60 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef 63 Tuple, in test_default_constructible_extension_sfinae() 68 Tuple, in test_default_constructible_extension_sfinae() 74 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef 75 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae() 84 MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 90 typedef std::tuple<MoveOnly, int> Tuple; in test_default_constructible_extension_sfinae() typedef [all …]
|
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | UTypes.pass.cpp | 46 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef 49 Tuple, in test_default_constructible_extension_sfinae() 54 Tuple, in test_default_constructible_extension_sfinae() 59 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef 62 Tuple, in test_default_constructible_extension_sfinae() 67 Tuple, in test_default_constructible_extension_sfinae() 73 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef 74 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae() 83 MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 89 typedef std::tuple<MoveOnly, int> Tuple; in test_default_constructible_extension_sfinae() typedef [all …]
|
/external/libchrome/ipc/ |
D | ipc_message_templates.h | 23 template <typename Tuple, size_t... Ns> 24 auto TupleForwardImpl(Tuple&& tuple, std::index_sequence<Ns...>) -> decltype( 25 std::forward_as_tuple(std::get<Ns>(std::forward<Tuple>(tuple))...)) { 26 return std::forward_as_tuple(std::get<Ns>(std::forward<Tuple>(tuple))...); 38 template <typename Tuple> 39 auto TupleForward(Tuple&& tuple) -> decltype(TupleForwardImpl( 40 std::forward<Tuple>(tuple), 41 std::make_index_sequence<std::tuple_size<std::decay_t<Tuple>>::value>())) { 43 std::forward<Tuple>(tuple), 44 std::make_index_sequence<std::tuple_size<std::decay_t<Tuple>>::value>()); [all …]
|