/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
p1.cpp | 3 template<class ...Types> struct Tuple; 5 Tuple<> *t0; 6 Tuple<int> *t1; 7 Tuple<int, char> *t2a; 8 Tuple<int, float> *t2b = t2a; // expected-error{{cannot initialize a variable of type 'Tuple<int, float> *' with an lvalue of type 'Tuple<int, char> *'}} 9 Tuple<int, float, double> *t3;
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
forward_as_tuple.pass.cpp | 10 // <tuple> 13 // tuple<Types&&...> forward_as_tuple(Types&&... t); 17 #include <tuple> 23 template <class Tuple> 25 test0(const Tuple&) 27 static_assert(std::tuple_size<Tuple>::value == 0, ""); 30 template <class Tuple> 32 test1a(const Tuple& t) 34 static_assert(std::tuple_size<Tuple>::value == 1, ""); 35 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&&>::value, "") [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
forward_as_tuple.pass.cpp | 10 // <tuple> 13 // tuple<Types&&...> forward_as_tuple(Types&&... t); 17 #include <tuple> 23 template <class Tuple> 25 test0(const Tuple&) 27 static_assert(std::tuple_size<Tuple>::value == 0, ""); 30 template <class Tuple> 32 test1a(const Tuple& t) 34 static_assert(std::tuple_size<Tuple>::value == 1, ""); 35 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&&>::value, "") [all...] |
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/ |
p12.cpp | 7 template<class ...> struct Tuple { }; 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<>()); 14 float &fr1 = g(Tuple<int, float>()); 15 double &dr1 = g(Tuple<int, float&>()); 16 double &dr2 = g(Tuple<int>());
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
tuple_size_v.pass.cpp | 12 // <tuple> 16 #include <tuple> 20 template <class Tuple, int Expect> 23 static_assert(std::tuple_size_v<Tuple> == Expect, ""); 24 static_assert(std::tuple_size_v<Tuple> == std::tuple_size<Tuple>::value, ""); 25 static_assert(std::tuple_size_v<Tuple const> == std::tuple_size<Tuple>::value, ""); 26 static_assert(std::tuple_size_v<Tuple volatile> == std::tuple_size<Tuple>::value, "") [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/utilities/tuple/ |
tuple_size_v.pass.cpp | 12 // <experimental/tuple> 16 #include <experimental/tuple> 22 template <class Tuple, int Expect> 25 static_assert(ex::tuple_size_v<Tuple> == Expect, ""); 26 static_assert(ex::tuple_size_v<Tuple> == std::tuple_size<Tuple>::value, ""); 27 static_assert(ex::tuple_size_v<Tuple const> == std::tuple_size<Tuple>::value, ""); 28 static_assert(ex::tuple_size_v<Tuple volatile> == std::tuple_size<Tuple>::value, "") [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/tuple/tuple.tuple/tuple.helper/ |
tuple_size_v.pass.cpp | 12 // <tuple> 16 #include <tuple> 20 template <class Tuple, int Expect> 23 static_assert(std::tuple_size_v<Tuple> == Expect, ""); 24 static_assert(std::tuple_size_v<Tuple> == std::tuple_size<Tuple>::value, ""); 25 static_assert(std::tuple_size_v<Tuple const> == std::tuple_size<Tuple>::value, ""); 26 static_assert(std::tuple_size_v<Tuple volatile> == std::tuple_size<Tuple>::value, "") [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/utilities/tuple/tuple.apply/ |
arg_type.pass.cpp | 12 // <experimental/tuple> 18 #include <experimental/tuple> 38 template <class Tuple> 42 Tuple t{1, 2}; 46 Tuple t{2, 2}; 50 Tuple t{2, 3}; 54 Tuple t{3, 3}; 55 assert(6 == ex::apply(call_with_rvalue_ref, static_cast<Tuple &&>(t))); 58 Tuple const t{4, 4}; 62 Tuple const t{4, 5} [all...] |
types.pass.cpp | 12 // <experimental/tuple> 18 #include <experimental/tuple> 100 template <class Tuple> 106 Tuple t{}; 113 Tuple t{}; 121 Tuple t{}; 129 Tuple t{}; 136 template <class Tuple> 142 Tuple t{1}; 149 Tuple t{2} [all...] |
constexpr_types.pass.cpp | 12 // <experimental/tuple> 18 #include <experimental/tuple> 46 template <class Tuple> 51 constexpr Tuple t{}; 56 constexpr Tuple t{}; 62 constexpr Tuple t{}; 68 template <class Tuple> 73 constexpr Tuple t{1}; 78 constexpr Tuple t{2}; 84 constexpr Tuple t{3} [all...] |
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
TensorSyclTuple.h | 17 * Minimal implementation of std::tuple that can be used inside a SYCL kernel. 24 namespace tuple { namespace in namespace:utility 35 /// \struct Tuple 37 /// \ztparam Ts... - the types of the elements that the tuple stores. 40 struct Tuple {}; 42 /// \brief specialisation of the \ref Tuple class when the tuple has at least 44 /// \tparam T : the type of the first element in the tuple. 45 /// \tparam Ts... the rest of the elements in the tuple. Ts... can be empty. 47 struct Tuple<T, Ts...> [all...] |
/external/tensorflow/tensorflow/core/framework/ |
queue_interface.h | 33 typedef std::vector<Tensor> Tuple; 35 typedef std::function<void(const Tuple&)> CallbackWithTuple; 37 virtual Status ValidateTuple(const Tuple& tuple) = 0; 38 virtual Status ValidateManyTuple(const Tuple& tuple) = 0; 41 // enqueue the tuple of tensors into the queue, and returns immediately. The 43 virtual void TryEnqueue(const Tuple& tuple, OpKernelContext* ctx, 48 virtual void TryEnqueueMany(const Tuple& tuple, OpKernelContext* ctx [all...] |
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/ |
enable_reduced_arity_initialization_extension.pass.cpp | 10 // <tuple> 12 // template <class... Types> class tuple; 15 // explicit tuple(UTypes&&... u); 21 #include <tuple> 44 typedef std::tuple<MO, ND> Tuple; 45 static_assert(!std::is_constructible<Tuple, MO>::value, ""); 46 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); 47 static_assert(test_convertible<Tuple, MO, ND>(), ""); 50 typedef std::tuple<MO, MO, ND> Tuple [all...] |
disable_reduced_arity_initialization_extension.pass.cpp | 10 // <tuple> 12 // template <class... Types> class tuple; 15 // explicit tuple(UTypes&&... u); 19 #include <tuple> 45 typedef std::tuple<MO, ND> Tuple; 46 static_assert(!std::is_constructible<Tuple, MO>::value, ""); 47 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); 48 static_assert(test_convertible<Tuple, MO, ND>(), ""); 51 typedef std::tuple<MO, MO, ND> Tuple [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/ |
enable_reduced_arity_initialization_extension.pass.cpp | 10 // <tuple> 12 // template <class... Types> class tuple; 15 // explicit tuple(UTypes&&... u); 21 #include <tuple> 44 typedef std::tuple<MO, ND> Tuple; 45 static_assert(!std::is_constructible<Tuple, MO>::value, ""); 46 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); 47 static_assert(test_convertible<Tuple, MO, ND>(), ""); 50 typedef std::tuple<MO, MO, ND> Tuple [all...] |
disable_reduced_arity_initialization_extension.pass.cpp | 10 // <tuple> 12 // template <class... Types> class tuple; 15 // explicit tuple(UTypes&&... u); 19 #include <tuple> 45 typedef std::tuple<MO, ND> Tuple; 46 static_assert(!std::is_constructible<Tuple, MO>::value, ""); 47 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); 48 static_assert(test_convertible<Tuple, MO, ND>(), ""); 51 typedef std::tuple<MO, MO, ND> Tuple [all...] |
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/ |
make_from_tuple.pass.cpp | 12 // <tuple> 14 // template <class T, class Tuple> constexpr T make_from_tuple(Tuple&&); 16 #include <tuple> 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> [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/tuple/tuple.tuple/tuple.apply/ |
make_from_tuple.pass.cpp | 12 // <tuple> 14 // template <class T, class Tuple> constexpr T make_from_tuple(Tuple&&); 16 #include <tuple> 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> [all...] |
/external/libchrome/base/ |
tuple.h | 5 // Use std::tuple as tuple type. This file contains helper functions for 8 // or instance and method pointer, and unpack a tuple into arguments to the 12 // // These two methods of creating a Tuple are identical. 13 // std::tuple<int, const char*> tuple_a(1, "wee"); 14 // std::tuple<int, const char*> tuple_b = std::make_tuple(1, "wee"); 29 #include <tuple> 55 // rvalue-reference of a tuple, where an rvalue-reference is expected. 57 typename std::tuple_element<I, std::tuple<Ts...>>::type&& get( 58 std::tuple<Ts...>&& t) [all...] |
/frameworks/base/core/java/android/animation/ |
StateListAnimator.java | 51 private ArrayList<Tuple> mTuples = new ArrayList<Tuple>(); 52 private Tuple mLastMatch = null; 83 Tuple tuple = new Tuple(specs, animator); local 84 tuple.mAnimator.addListener(mAnimatorListener); 85 mTuples.add(tuple); 139 clone.mTuples = new ArrayList<Tuple>(mTuples.size()); 147 final Tuple tuple = mTuples.get(i) local 167 final Tuple tuple = mTuples.get(i); local [all...] |
/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/ |
is_nothrow_constructible.pass.cpp | 96 struct Tuple { 97 Tuple(Empty&&) noexcept {} 113 test_is_nothrow_constructible<Tuple &&, Empty> (); // See bug #19616. 115 static_assert(!std::is_constructible<Tuple&, Empty>::value, ""); 116 test_is_not_nothrow_constructible<Tuple &, Empty> (); // See bug #19616.
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/meta/meta.unary/meta.unary.prop/ |
is_nothrow_constructible.pass.cpp | 96 struct Tuple { 97 Tuple(Empty&&) noexcept {} 113 test_is_nothrow_constructible<Tuple &&, Empty> (); // See bug #19616. 115 static_assert(!std::is_constructible<Tuple&, Empty>::value, ""); 116 test_is_not_nothrow_constructible<Tuple &, Empty> (); // See bug #19616.
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
UTypes.pass.cpp | 10 // <tuple> 12 // template <class... Types> class tuple; 15 // explicit tuple(UTypes&&... u); 19 #include <tuple> 47 typedef std::tuple<MoveOnly, NoDefault> Tuple; 50 Tuple, 55 Tuple, 60 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
UTypes.pass.cpp | 10 // <tuple> 12 // template <class... Types> class tuple; 15 // explicit tuple(UTypes&&... u); 19 #include <tuple> 47 typedef std::tuple<MoveOnly, NoDefault> Tuple; 50 Tuple, 55 Tuple, 60 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; [all...] |
/external/tensorflow/tensorflow/compiler/xla/client/ |
sharding_builder.h | 53 // Creates a tuple sharding from the given ShapeTree of element shardings. 54 OpSharding Tuple(const ShapeTree<OpSharding>& shardings);
|