/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;
|
example-tuple.cpp | 3 // Example tuple implementation from the variadic templates proposal, 53 template<typename... Values> class tuple; 55 // Basis case: zero-length tuple 56 template<> class tuple<> { }; class 59 class tuple<Head, Tail...> : private tuple<Tail...> { class in inherits:tuple 60 typedef tuple<Tail...> inherited; 63 tuple() { } function in class:tuple 66 // Construct tuple from separate arguments. 67 tuple(typename add_const_reference<Head>::type v function in class:tuple 72 template<typename... VValues> tuple(const tuple<VValues...>& other) function in class:tuple [all...] |
partial-ordering.cpp | 4 template<typename ...Types> struct tuple; 6 template<typename Tuple> 12 struct X1<tuple<Head, Tail...> > { 17 struct X1<tuple<Head, Tail&...> > { 22 struct X1<tuple<Head&, Tail&...> > { 26 int check0[X1<tuple<>>::value == 0? 1 : -1]; 27 int check1[X1<tuple<int>>::value == 2? 1 : -1]; 28 int check2[X1<tuple<int, int>>::value == 1? 1 : -1]; 29 int check3[X1<tuple<int, int&>>::value == 2? 1 : -1]; 30 int check4[X1<tuple<int&, int&>>::value == 3? 1 : -1] [all...] |
example-bind.cpp | 53 template<typename... Values> class tuple; 55 // Basis case: zero-length tuple 56 template<> class tuple<> { }; class 59 class tuple<Head, Tail...> : private tuple<Tail...> { class in inherits:tuple 60 typedef tuple<Tail...> inherited; 63 tuple() { } function in class:tuple 66 // Construct tuple from separate arguments. 67 tuple(typename add_const_reference<Head>::type v, function in class:tuple 71 // Construct tuple from another tuple. 72 template<typename... VValues> tuple(const tuple<VValues...>& other) function in class:tuple [all...] |
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/ |
p2-0x.cpp | 9 template<typename ...> struct tuple; 17 struct same_tuple<tuple<Types1...>, tuple<Types1...> > { 21 int same_tuple_check1[same_tuple<tuple<int, float>, tuple<int, double>>::value? -1 : 1]; 22 int same_tuple_check2[same_tuple<tuple<float, double>, tuple<float, double>>::value? 1 : -1];
|
p9-0x.cpp | 3 template<typename ...Types> struct tuple; 23 struct tuple_same_with_int<tuple<Types...>, tuple<Types..., int>> { 27 int tuple_same_with_int_1[tuple_same_with_int<tuple<int, float, double>, 28 tuple<int, float, double, int> 44 typedef tuple<ElementTypes...> element_types; 47 typedef tuple<unsigned_c<Bounds>...> bounds_types; 51 tuple<int, float, double>>::value? 1 : -1]; 53 tuple<unsigned_c<1>, unsigned_c<2>, unsigned_c<3>>
|
/external/qemu/hw/ |
pcmcia.h | 36 #define CISTPL_DEVICE 0x01 /* 5V Device Information Tuple */ 37 #define CISTPL_NO_LINK 0x14 /* No Link Tuple */ 38 #define CISTPL_VERS_1 0x15 /* Level 1 Version Tuple */ 39 #define CISTPL_JEDEC_C 0x18 /* JEDEC ID Tuple */ 40 #define CISTPL_JEDEC_A 0x19 /* JEDEC ID Tuple */ 41 #define CISTPL_CONFIG 0x1a /* Configuration Tuple */ 47 #define CISTPL_MANFID 0x20 /* Manufacture ID Tuple */ 48 #define CISTPL_FUNCID 0x21 /* Function ID Tuple */ 49 #define CISTPL_FUNCE 0x22 /* Function Extension Tuple */ 50 #define CISTPL_END 0xff /* Tuple End * [all...] |
/external/clang/test/Index/ |
usrs-cxx0x.cpp | 2 struct tuple { }; struct 4 void f(tuple<int, float, double>); 7 // CHECK: usrs-cxx0x.cpp c:@ST>1#pT@tuple Extent=[1:1 - 2:17] 8 // CHECK: usrs-cxx0x.cpp c:@F@f#$@S@tuple>#p3Ifd# Extent=[4:1 - 4:34]
|
/external/chromium/testing/gtest/include/gtest/internal/ |
gtest-tuple.h | 34 // Implements a subset of TR1 tuple needed by Google Test and Google Mock. 42 // tuple template as a friend (it complains that tuple is redefined). This 50 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \ 54 // GTEST_n_TUPLE_(T) is the type of an n-tuple. 55 #define GTEST_0_TUPLE_(T) tuple<> 56 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \ 58 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \ 60 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \ 62 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, 175 class tuple<> { class in namespace:std::tr1 177 tuple() {} function in class:std::tr1::tuple 178 tuple(const tuple& \/* t *\/) {} function in class:std::tr1::tuple 187 tuple() : f0_() {} function 191 tuple(const tuple& t) : f0_(t.f0_) {} function 219 tuple() : f0_(), f1_() {} function 224 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_) {} function 229 tuple(const ::std::pair<U0, U1>& p) : f0_(p.first), f1_(p.second) {} function 262 tuple() : f0_(), f1_(), f2_() {} function 267 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_) {} function 299 tuple() : f0_(), f1_(), f2_(), f3_() {} function 305 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_) {} function 340 tuple() : f0_(), f1_(), f2_(), f3_(), f4_() {} function 346 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 384 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_() {} function 391 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 431 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_() {} function 438 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 480 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_() {} function 488 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 532 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_(), f8_() {} function 540 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 582 class tuple { class in namespace:std::tr1 586 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_(), f8_(), function in class:std::tr1::tuple 595 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function in class:std::tr1::tuple [all...] |
gtest-tuple.h.pump | 2 $var n = 10 $$ Maximum number of tuple fields we want to support. 35 // Implements a subset of TR1 tuple needed by Google Test and Google Mock. 43 // tuple template as a friend (it complains that tuple is redefined). This 51 template <GTEST_$(n)_TYPENAMES_(U)> friend class tuple; \ 59 // GTEST_n_TUPLE_(T) is the type of an n-tuple. 60 #define GTEST_0_TUPLE_(T) tuple<> 65 #define GTEST_$(k)_TUPLE_(T) tuple<$for m, [[T##$m]]$for m2 [[, void]]> 85 class tuple; 114 // iff k < the number of fields in tuple type T [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
gtest-tuple.h | 34 // Implements a subset of TR1 tuple needed by Google Test and Google Mock. 42 // tuple template as a friend (it complains that tuple is redefined). This 50 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \ 54 // GTEST_n_TUPLE_(T) is the type of an n-tuple. 55 #define GTEST_0_TUPLE_(T) tuple<> 56 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \ 58 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \ 60 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \ 62 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, 175 class tuple<> { class in namespace:std::tr1 177 tuple() {} function in class:std::tr1::tuple 178 tuple(const tuple& \/* t *\/) {} function in class:std::tr1::tuple 187 tuple() : f0_() {} function 191 tuple(const tuple& t) : f0_(t.f0_) {} function 219 tuple() : f0_(), f1_() {} function 224 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_) {} function 229 tuple(const ::std::pair<U0, U1>& p) : f0_(p.first), f1_(p.second) {} function 262 tuple() : f0_(), f1_(), f2_() {} function 267 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_) {} function 299 tuple() : f0_(), f1_(), f2_(), f3_() {} function 305 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_) {} function 340 tuple() : f0_(), f1_(), f2_(), f3_(), f4_() {} function 346 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 384 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_() {} function 391 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 431 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_() {} function 438 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 480 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_() {} function 488 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 532 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_(), f8_() {} function 540 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 582 class tuple { class in namespace:std::tr1 586 tuple() : f0_(), f1_(), f2_(), f3_(), f4_(), f5_(), f6_(), f7_(), f8_(), function in class:std::tr1::tuple 595 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function in class:std::tr1::tuple [all...] |
/external/protobuf/gtest/include/gtest/internal/ |
gtest-tuple.h | 34 // Implements a subset of TR1 tuple needed by Google Test and Google Mock. 42 // tuple template as a friend (it complains that tuple is redefined). This 49 template <GTEST_10_TYPENAMES_(U)> friend class tuple; \ 53 // GTEST_n_TUPLE_(T) is the type of an n-tuple. 54 #define GTEST_0_TUPLE_(T) tuple<> 55 #define GTEST_1_TUPLE_(T) tuple<T##0, void, void, void, void, void, void, \ 57 #define GTEST_2_TUPLE_(T) tuple<T##0, T##1, void, void, void, void, void, \ 59 #define GTEST_3_TUPLE_(T) tuple<T##0, T##1, T##2, void, void, void, void, \ 61 #define GTEST_4_TUPLE_(T) tuple<T##0, T##1, T##2, T##3, void, void, void, 174 class tuple<> { class in namespace:std::tr1 176 tuple() {} function in class:std::tr1::tuple 177 tuple(const tuple& \/* t *\/) {} function in class:std::tr1::tuple 186 tuple() {} function 190 tuple(const tuple& t) : f0_(t.f0_) {} function 218 tuple() {} function 223 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_) {} function 228 tuple(const ::std::pair<U0, U1>& p) : f0_(p.first), f1_(p.second) {} function 261 tuple() {} function 266 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_) {} function 298 tuple() {} function 304 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_) {} function 339 tuple() {} function 345 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 383 tuple() {} function 390 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 430 tuple() {} function 437 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 479 tuple() {} function 487 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 531 tuple() {} function 539 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function 581 class tuple { class in namespace:std::tr1 585 tuple() {} function in class:std::tr1::tuple 593 tuple(const tuple& t) : f0_(t.f0_), f1_(t.f1_), f2_(t.f2_), f3_(t.f3_), function in class:std::tr1::tuple [all...] |
gtest-tuple.h.pump | 2 $var n = 10 $$ Maximum number of tuple fields we want to support. 35 // Implements a subset of TR1 tuple needed by Google Test and Google Mock. 43 // that prevents us from declaring the tuple template as a friend (it 44 // complains that tuple is redefined). This hack bypasses the bug by 50 template <GTEST_$(n)_TYPENAMES_(U)> friend class tuple; \ 58 // GTEST_n_TUPLE_(T) is the type of an n-tuple. 59 #define GTEST_0_TUPLE_(T) tuple<> 64 #define GTEST_$(k)_TUPLE_(T) tuple<$for m, [[T##$m]]$for m2 [[, void]]> 84 class tuple; 113 // iff k < the number of fields in tuple type T [all...] |
/external/chromium/testing/gtest/test/ |
gtest-tuple_test.cc | 32 #include "gtest/internal/gtest-tuple.h" 40 using ::std::tr1::tuple; 45 // Tests that tuple_element<K, tuple<T0, T1, ..., TN> >::type returns TK. 47 StaticAssertTypeEq<int, tuple_element<0, tuple<int, char> >::type>(); 48 StaticAssertTypeEq<int&, tuple_element<1, tuple<double, int&> >::type>(); 49 StaticAssertTypeEq<bool, tuple_element<2, tuple<double, int, bool> >::type>(); 52 // Tests that tuple_size<T>::value gives the number of fields in tuple 55 EXPECT_EQ(0, +tuple_size<tuple<> >::value); 56 EXPECT_EQ(1, +tuple_size<tuple<void*> >::value); 57 EXPECT_EQ(1, +tuple_size<tuple<char> >::value) [all...] |
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/ |
p12.cpp | 6 template<class ...> struct Tuple { }; 7 template<class ... Types> int &g(Tuple<Types ...>); // #1 8 template<class T1, class ... Types> float &g(Tuple<T1, Types ...>); // #2 9 template<class T1, class ... Types> double &g(Tuple<T1, Types& ...>); // #3 12 int &ir1 = g(Tuple<>()); 13 float &fr1 = g(Tuple<int, float>()); 14 double &dr1 = g(Tuple<int, float&>()); 15 double &dr2 = g(Tuple<int>());
|
/external/protobuf/gtest/test/ |
gtest-tuple_test.cc | 32 #include <gtest/internal/gtest-tuple.h> 40 using ::std::tr1::tuple; 45 // Tests that tuple_element<K, tuple<T0, T1, ..., TN> >::type returns TK. 47 StaticAssertTypeEq<int, tuple_element<0, tuple<int, char> >::type>(); 48 StaticAssertTypeEq<int&, tuple_element<1, tuple<double, int&> >::type>(); 49 StaticAssertTypeEq<bool, tuple_element<2, tuple<double, int, bool> >::type>(); 52 // Tests that tuple_size<T>::value gives the number of fields in tuple 55 EXPECT_EQ(0, +tuple_size<tuple<> >::value); 56 EXPECT_EQ(1, +tuple_size<tuple<void*> >::value); 57 EXPECT_EQ(1, +tuple_size<tuple<char> >::value) [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/ |
tuple | 0 // <tuple> -*- C++ -*- 25 /** @file include/tuple 110 * Contains the actual implementation of the @c tuple template, stored 121 * Zero-element tuple implementation. This is the basis case for the 132 * Recursive tuple implementation. Here we store the @c Head element 224 /// tuple 226 class tuple : public _Tuple_impl<0, _Elements...> 231 tuple() 235 tuple(const _Elements&... __elements) 240 tuple(_UElements&&... __elements [all...] |
/prebuilt/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/ |
tuple | 0 // <tuple> -*- C++ -*- 25 /** @file include/tuple 110 * Contains the actual implementation of the @c tuple template, stored 121 * Zero-element tuple implementation. This is the basis case for the 132 * Recursive tuple implementation. Here we store the @c Head element 224 /// tuple 226 class tuple : public _Tuple_impl<0, _Elements...> 231 tuple() 235 tuple(const _Elements&... __elements) 240 tuple(_UElements&&... __elements [all...] |
/prebuilt/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/ |
tuple | 0 // <tuple> -*- C++ -*- 25 /** @file include/tuple 110 * Contains the actual implementation of the @c tuple template, stored 121 * Zero-element tuple implementation. This is the basis case for the 132 * Recursive tuple implementation. Here we store the @c Head element 224 /// tuple 226 class tuple : public _Tuple_impl<0, _Elements...> 231 tuple() 235 tuple(const _Elements&... __elements) 240 tuple(_UElements&&... __elements [all...] |
/external/kernel-headers/original/linux/netfilter_ipv4/ |
ip_conntrack_tuple.h | 7 /* A `tuple' is a structure containing the information to uniquely 8 identify a connection. ie. if two packets have the same tuple, they 15 /* The protocol-specific manipulable parts of the tuple: always in 39 /* The manipulable part of the tuple. */ 51 /* These are the parts of the tuple which are fixed. */ 86 #define IP_CT_TUPLE_U_BLANK(tuple) \ 88 (tuple)->src.u.all = 0; \ 89 (tuple)->dst.u.all = 0; \ 95 DEBUGP("tuple %p: %u %u.%u.%u.%u:%hu -> %u.%u.%u.%u:%hu\n", \ 100 /* If we're the first tuple, it's the original dir. * 108 struct ip_conntrack_tuple tuple; member in struct:ip_conntrack_tuple_hash [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/tr1/ |
tuple | 1 // class template tuple -*- C++ -*- 25 /** @file tr1/tuple 62 * Contains the actual implementation of the @c tuple template, stored 73 * Zero-element tuple implementation. This is the basis case for the 80 * Recursive tuple implementation. Here we store the @c Head element 128 class tuple : public _Tuple_impl<0, _Elements...> 133 tuple() : _Inherited() { } 136 tuple(typename __add_c_ref<_Elements>::type... __elements) 140 tuple(const tuple<_UElements...>& __in [all...] |
/prebuilt/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/tr1/ |
tuple | 1 // class template tuple -*- C++ -*- 25 /** @file tr1/tuple 62 * Contains the actual implementation of the @c tuple template, stored 73 * Zero-element tuple implementation. This is the basis case for the 80 * Recursive tuple implementation. Here we store the @c Head element 128 class tuple : public _Tuple_impl<0, _Elements...> 133 tuple() : _Inherited() { } 136 tuple(typename __add_c_ref<_Elements>::type... __elements) 140 tuple(const tuple<_UElements...>& __in [all...] |
/prebuilt/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/tr1/ |
tuple | 1 // class template tuple -*- C++ -*- 25 /** @file tr1/tuple 62 * Contains the actual implementation of the @c tuple template, stored 73 * Zero-element tuple implementation. This is the basis case for the 80 * Recursive tuple implementation. Here we store the @c Head element 128 class tuple : public _Tuple_impl<0, _Elements...> 133 tuple() : _Inherited() { } 136 tuple(typename __add_c_ref<_Elements>::type... __elements) 140 tuple(const tuple<_UElements...>& __in [all...] |
/bionic/libc/kernel/common/linux/netfilter_ipv4/ |
ip_conntrack_tuple.h | 79 #define IP_CT_TUPLE_U_BLANK(tuple) do { (tuple)->src.u.all = 0; (tuple)->dst.u.all = 0; } while (0)
|
/development/ndk/platforms/android-3/include/linux/netfilter_ipv4/ |
ip_conntrack_tuple.h | 79 #define IP_CT_TUPLE_U_BLANK(tuple) do { (tuple)->src.u.all = 0; (tuple)->dst.u.all = 0; } while (0)
|