Home
last modified time | relevance | path

Searched refs:Tuple (Results 1 – 25 of 52) sorted by relevance

123

/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/
Dforward_as_tuple.pass.cpp21 template <class Tuple>
23 test0(const Tuple& t) in test0()
25 static_assert(std::tuple_size<Tuple>::value == 0, ""); in test0()
28 template <class Tuple>
30 test1a(const Tuple& t) in test1a()
32 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1a()
33 static_assert(std::is_same<typename std::tuple_element<0, Tuple>::type, int&&>::value, ""); in test1a()
37 template <class Tuple>
39 test1b(const Tuple& t) in test1b()
41 static_assert(std::tuple_size<Tuple>::value == 1, ""); in test1b()
[all …]
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/
Dp12.cpp7 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/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DUTypes.pass.cpp45 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef
48 Tuple, in test_default_constructible_extension_sfinae()
53 Tuple, in test_default_constructible_extension_sfinae()
58 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef
61 Tuple, in test_default_constructible_extension_sfinae()
66 Tuple, in test_default_constructible_extension_sfinae()
72 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef
73 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae()
82 MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae()
86 typedef std::tuple<MoveOnly, int> Tuple; in test_default_constructible_extension_sfinae() typedef
[all …]
Dalloc_UTypes.pass.cpp36 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef
39 Tuple, in test_default_constructible_extension_sfinae()
44 Tuple, in test_default_constructible_extension_sfinae()
49 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef
52 Tuple, in test_default_constructible_extension_sfinae()
57 Tuple, in test_default_constructible_extension_sfinae()
63 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() typedef
64 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae()
73 std::allocator_arg_t, A1<int>, MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae()
77 typedef std::tuple<MoveOnly, int> Tuple; in test_default_constructible_extension_sfinae() typedef
[all …]
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dp1.cpp3 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, f…
9 Tuple<int, float, double> *t3;
Dexample-bind.cpp115 template<typename Tuple> struct tuple_size;
121 template<int I, typename Tuple> struct tuple_element;
134 template<int I, typename Tuple> class get_impl;
265 template<int I, typename Tuple, typename = void>
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-tuple.h139 template <bool kIndexValid, int kIndex, class Tuple>
708 template <typename Tuple> struct tuple_size;
743 template <int k, class Tuple>
746 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
749 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
758 template <class Tuple>
759 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
760 Field(Tuple& t) { return t.f0_; } // NOLINT
762 template <class Tuple>
763 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
/external/google-breakpad/src/testing/gtest/include/gtest/internal/
Dgtest-tuple.h141 template <bool kIndexValid, int kIndex, class Tuple>
730 template <typename Tuple> struct tuple_size;
787 template <int k, class Tuple>
790 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
793 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
802 template <class Tuple>
803 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
804 Field(Tuple& t) { return t.f0_; } // NOLINT
806 template <class Tuple>
807 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
Dgtest-tuple.h.pump115 template <bool kIndexValid, int kIndex, class Tuple>
199 // 6.1.3.2 Tuple creation functions.
217 // 6.1.3.3 Tuple helper classes.
219 template <typename Tuple> struct tuple_size;
230 template <int k, class Tuple>
233 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
236 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
247 template <class Tuple>
248 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_($i, Tuple))
249 Field(Tuple& t) { return t.f$(i)_; } // NOLINT
[all …]
/external/gtest/include/gtest/internal/
Dgtest-tuple.h141 template <bool kIndexValid, int kIndex, class Tuple>
730 template <typename Tuple> struct tuple_size;
787 template <int k, class Tuple>
790 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
793 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
802 template <class Tuple>
803 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
804 Field(Tuple& t) { return t.f0_; } // NOLINT
806 template <class Tuple>
807 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
Dgtest-tuple.h.pump115 template <bool kIndexValid, int kIndex, class Tuple>
199 // 6.1.3.2 Tuple creation functions.
217 // 6.1.3.3 Tuple helper classes.
219 template <typename Tuple> struct tuple_size;
230 template <int k, class Tuple>
233 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
236 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
247 template <class Tuple>
248 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_($i, Tuple))
249 Field(Tuple& t) { return t.f$(i)_; } // NOLINT
[all …]
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-tuple.h139 template <bool kIndexValid, int kIndex, class Tuple>
708 template <typename Tuple> struct tuple_size;
743 template <int k, class Tuple>
746 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
749 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
758 template <class Tuple>
759 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
760 Field(Tuple& t) { return t.f0_; } // NOLINT
762 template <class Tuple>
763 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
Dgtest-tuple.h.pump115 template <bool kIndexValid, int kIndex, class Tuple>
198 // 6.1.3.2 Tuple creation functions.
216 // 6.1.3.3 Tuple helper classes.
218 template <typename Tuple> struct tuple_size;
227 template <int k, class Tuple>
230 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
233 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
244 template <class Tuple>
245 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_($i, Tuple))
246 Field(Tuple& t) { return t.f$(i)_; } // NOLINT
[all …]
/external/protobuf/gtest/include/gtest/internal/
Dgtest-tuple.h139 template <bool kIndexValid, int kIndex, class Tuple>
708 template <typename Tuple> struct tuple_size;
743 template <int k, class Tuple>
746 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
749 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
758 template <class Tuple>
759 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
760 Field(Tuple& t) { return t.f0_; } // NOLINT
762 template <class Tuple>
763 static GTEST_BY_REF_(GTEST_TUPLE_ELEMENT_(0, Tuple))
[all …]
Dgtest-tuple.h.pump115 template <bool kIndexValid, int kIndex, class Tuple>
198 // 6.1.3.2 Tuple creation functions.
216 // 6.1.3.3 Tuple helper classes.
218 template <typename Tuple> struct tuple_size;
227 template <int k, class Tuple>
230 k < (tuple_size<Tuple>::value), k, Tuple>::type type;
233 #define GTEST_TUPLE_ELEMENT_(k, Tuple) typename tuple_element<k, Tuple >::type
244 template <class Tuple>
245 static GTEST_ADD_REF_(GTEST_TUPLE_ELEMENT_($i, Tuple))
246 Field(Tuple& t) { return t.f$(i)_; } // NOLINT
[all …]
/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/
Dis_nothrow_constructible.pass.cpp80 struct Tuple { struct
81 Tuple(Empty&&) noexcept {} in Tuple() argument
92 test_is_nothrow_constructible<Tuple &&, Empty> (); // See bug #19616. in main()
100 static_assert(!std::is_constructible<Tuple&, Empty>::value, ""); in main()
101 test_is_not_nothrow_constructible<Tuple &, Empty> (); // See bug #19616. in main()
/external/llvm/tools/llvm-jitlistener/
Dllvm-jitlistener.cpp130 Triple Tuple(TheModule->getTargetTriple()); in InitEE() local
131 if (Tuple.getTriple().empty()) in InitEE()
132 Tuple.setTriple(sys::getProcessTriple()); in InitEE()
134 if (Tuple.isOSWindows() && !Tuple.isOSBinFormatELF()) { in InitEE()
135 Tuple.setObjectFormat(Triple::ELF); in InitEE()
136 TheModule->setTargetTriple(Tuple.getTriple()); in InitEE()
/external/google-breakpad/src/testing/gtest/include/gtest/
Dgtest-printers.h717 template <typename Tuple>
718 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { in PrintPrefixTo()
721 UniversalPrinter<typename ::std::tr1::tuple_element<N - 1, Tuple>::type> in PrintPrefixTo()
727 template <typename Tuple>
728 static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) { in TersePrintPrefixToStrings()
739 template <typename Tuple>
740 static void PrintPrefixTo(const Tuple&, ::std::ostream*) {}
742 template <typename Tuple>
743 static void TersePrintPrefixToStrings(const Tuple&, Strings*) {}
752 template <typename Tuple>
[all …]
/external/llvm/utils/unittest/googletest/include/gtest/
Dgtest-printers.h714 template <typename Tuple>
715 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { in PrintPrefixTo()
718 UniversalPrinter<typename ::std::tr1::tuple_element<N - 1, Tuple>::type> in PrintPrefixTo()
724 template <typename Tuple>
725 static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) { in TersePrintPrefixToStrings()
736 template <typename Tuple>
737 static void PrintPrefixTo(const Tuple&, ::std::ostream*) {}
739 template <typename Tuple>
740 static void TersePrintPrefixToStrings(const Tuple&, Strings*) {}
749 template <typename Tuple>
[all …]
/external/mesa3d/src/gtest/include/gtest/
Dgtest-printers.h714 template <typename Tuple>
715 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { in PrintPrefixTo()
718 UniversalPrinter<typename ::std::tr1::tuple_element<N - 1, Tuple>::type> in PrintPrefixTo()
724 template <typename Tuple>
725 static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) { in TersePrintPrefixToStrings()
736 template <typename Tuple>
737 static void PrintPrefixTo(const Tuple&, ::std::ostream*) {}
739 template <typename Tuple>
740 static void TersePrintPrefixToStrings(const Tuple&, Strings*) {}
749 template <typename Tuple>
[all …]
/external/openfst/src/include/fst/
Dencode.h62 struct Tuple { struct
63 Tuple() {} in Tuple() function
64 Tuple(Label ilabel_, Label olabel_, Weight weight_) in Tuple() argument
66 Tuple(const Tuple& tuple) in Tuple() argument
77 bool operator()(const Tuple* x, const Tuple* y) const { in operator()
97 size_t operator()(const Tuple* x) const { in operator()
112 typedef unordered_map<const Tuple*,
132 const Tuple tuple(arc.ilabel, in Encode()
137 encode_tuples_.push_back(new Tuple(tuple)); in Encode()
147 const Tuple tuple(arc.ilabel, in GetLabel()
[all …]
/external/google-breakpad/src/testing/include/gmock/
Dgmock-generated-matchers.h50 #define GMOCK_FIELD_TYPE_(Tuple, i) \ argument
51 typename ::std::tr1::tuple_element<i, Tuple>::type
64 template <class Tuple, int k0 = -1, int k1 = -1, int k2 = -1, int k3 = -1,
70 template <class Tuple, int k0, int k1, int k2, int k3, int k4, int k5, int k6,
74 typedef ::std::tr1::tuple<GMOCK_FIELD_TYPE_(Tuple, k0),
75 GMOCK_FIELD_TYPE_(Tuple, k1), GMOCK_FIELD_TYPE_(Tuple, k2),
76 GMOCK_FIELD_TYPE_(Tuple, k3), GMOCK_FIELD_TYPE_(Tuple, k4),
77 GMOCK_FIELD_TYPE_(Tuple, k5), GMOCK_FIELD_TYPE_(Tuple, k6),
78 GMOCK_FIELD_TYPE_(Tuple, k7), GMOCK_FIELD_TYPE_(Tuple, k8),
79 GMOCK_FIELD_TYPE_(Tuple, k9)> type;
[all …]
Dgmock-generated-matchers.h.pump53 // The type of the i-th (0-based) field of Tuple.
54 #define GMOCK_FIELD_TYPE_(Tuple, i) \
55 typename ::std::tr1::tuple_element<i, Tuple>::type
57 // TupleFields<Tuple, k0, ..., kn> is for selecting fields from a
58 // tuple of type Tuple. It has two members:
60 // type: a tuple type whose i-th field is the ki-th field of Tuple.
68 template <class Tuple$for i [[, int k$i = -1]]>
72 template <class Tuple$for i [[, int k$i]]>
75 typedef ::std::tr1::tuple<$for i, [[GMOCK_FIELD_TYPE_(Tuple, k$i)]]> type;
76 static type GetSelectedFields(const Tuple& t) {
[all …]
/external/gtest/include/gtest/
Dgtest-printers.h773 template <typename Tuple>
774 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) { in PrintPrefixTo()
777 UniversalPrinter<typename ::std::tr1::tuple_element<N - 1, Tuple>::type> in PrintPrefixTo()
783 template <typename Tuple>
784 static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) { in TersePrintPrefixToStrings()
795 template <typename Tuple>
796 static void PrintPrefixTo(const Tuple&, ::std::ostream*) {}
798 template <typename Tuple>
799 static void TersePrintPrefixToStrings(const Tuple&, Strings*) {}
808 template <typename Tuple>
[all …]
/external/openfst/src/include/fst/extensions/pdt/
Dexpand.h139 const StateTuple &tuple = state_table_->Tuple(s); in Final()
177 StateTuple tuple = state_table_->Tuple(s); in ExpandState()
400 StackId si1 = state_table_.Tuple(s1).stack_id; in operator()
401 StackId si2 = state_table_.Tuple(s2).stack_id; in operator()
677 Times(DistanceToDest(state_table_.Tuple(arc.nextstate).state_id, in PruneArc()
753 VLOG(2) << "Open paren: " << s << "(" << state_table_.Tuple(s).state_id in ProcOpenParen()
754 << ") to " << ns << "(" << state_table_.Tuple(ns).state_id << ")"; in ProcOpenParen()
760 balance_data_->Find(paren_id, state_table_.Tuple(ns).state_id); in ProcOpenParen()
777 VLOG(2) << state_table_.Tuple(ns).state_id << ", " << source; in ProcOpenParen()
779 << DistanceToDest(state_table_.Tuple(ns).state_id, source) in ProcOpenParen()
[all …]

123