Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 397) sorted by relevance

12345678910>>...16

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.min.max/
Dminmax_init_list.pass.cpp22 assert((std::minmax({1, 2, 3}) == std::pair<int, int>(1, 3))); in main()
23 assert((std::minmax({1, 3, 2}) == std::pair<int, int>(1, 3))); in main()
24 assert((std::minmax({2, 1, 3}) == std::pair<int, int>(1, 3))); in main()
25 assert((std::minmax({2, 3, 1}) == std::pair<int, int>(1, 3))); in main()
26 assert((std::minmax({3, 1, 2}) == std::pair<int, int>(1, 3))); in main()
27 assert((std::minmax({3, 2, 1}) == std::pair<int, int>(1, 3))); in main()
30 static_assert((std::minmax({1, 2, 3}) == std::pair<int, int>(1, 3)), ""); in main()
31 static_assert((std::minmax({1, 3, 2}) == std::pair<int, int>(1, 3)), ""); in main()
32 static_assert((std::minmax({2, 1, 3}) == std::pair<int, int>(1, 3)), ""); in main()
33 static_assert((std::minmax({2, 3, 1}) == std::pair<int, int>(1, 3)), ""); in main()
[all …]
Dminmax_init_list_comp.pass.cpp23 assert((std::minmax({1, 2, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main()
24 assert((std::minmax({1, 3, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main()
25 assert((std::minmax({2, 1, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main()
26 assert((std::minmax({2, 3, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main()
27 assert((std::minmax({3, 1, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main()
28 assert((std::minmax({3, 2, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main()
31 static_assert((std::minmax({1, 2, 3}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); in main()
32 static_assert((std::minmax({1, 3, 2}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); in main()
33 static_assert((std::minmax({2, 1, 3}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); in main()
34 static_assert((std::minmax({2, 3, 1}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); in main()
[all …]
/ndk/sources/cxx-stl/gabi++/include/
Dstl_pair.h72 struct pair { struct
78 pair() : first(), second() {} in pair() argument
79 pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {} in pair() argument
82 pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair() argument
86 inline bool operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
92 inline bool operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
99 inline bool operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) {
104 inline bool operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) {
109 inline bool operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) {
114 inline bool operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) {
[all …]
/ndk/sources/cxx-stl/system/include/
Dstl_pair.h72 struct pair { struct
78 pair() : first(), second() {} in pair() argument
79 pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {} in pair() argument
82 pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair() function
86 inline bool operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
92 inline bool operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
99 inline bool operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) {
104 inline bool operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) {
109 inline bool operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) {
114 inline bool operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) {
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/
Dtypes.pass.cpp42 …static_assert((std::is_same<std::map<int, double>::value_type, std::pair<const int, double> >::val… in main()
44 …static_assert((std::is_same<std::map<int, double>::allocator_type, std::allocator<std::pair<const … in main()
45 …static_assert((std::is_same<std::map<int, double>::reference, std::pair<const int, double>&>::valu… in main()
46 …static_assert((std::is_same<std::map<int, double>::const_reference, const std::pair<const int, dou… in main()
47 …static_assert((std::is_same<std::map<int, double>::pointer, std::pair<const int, double>*>::value)… in main()
48 …static_assert((std::is_same<std::map<int, double>::const_pointer, const std::pair<const int, doubl… in main()
54 …static_assert((std::is_same<std::map<int, double, std::less<int>, min_allocator<std::pair<const in… in main()
55 …static_assert((std::is_same<std::map<int, double, std::less<int>, min_allocator<std::pair<const in… in main()
56 …map<int, double, std::less<int>, min_allocator<std::pair<const int, double>>>::value_type, std::pa… in main()
57 …static_assert((std::is_same<std::map<int, double, std::less<int>, min_allocator<std::pair<const in… in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/multimap/
Dtypes.pass.cpp42 …static_assert((std::is_same<std::multimap<int, double>::value_type, std::pair<const int, double> >… in main()
44 …::is_same<std::multimap<int, double>::allocator_type, std::allocator<std::pair<const int, double> … in main()
45 …static_assert((std::is_same<std::multimap<int, double>::reference, std::pair<const int, double>&>:… in main()
46 …static_assert((std::is_same<std::multimap<int, double>::const_reference, const std::pair<const int… in main()
47 …static_assert((std::is_same<std::multimap<int, double>::pointer, std::pair<const int, double>*>::v… in main()
48 …static_assert((std::is_same<std::multimap<int, double>::const_pointer, const std::pair<const int, … in main()
54 …static_assert((std::is_same<std::multimap<int, double, std::less<int>, min_allocator<std::pair<con… in main()
55 …static_assert((std::is_same<std::multimap<int, double, std::less<int>, min_allocator<std::pair<con… in main()
56 …map<int, double, std::less<int>, min_allocator<std::pair<const int, double>>>::value_type, std::pa… in main()
57 …static_assert((std::is_same<std::multimap<int, double, std::less<int>, min_allocator<std::pair<con… in main()
[all …]
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_pair.h51 struct pair { struct
58 pair() {} in pair() argument
60 pair() : first(_T1()), second(_T2()) {} in pair() argument
62 pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {} in pair() argument
66 pair(const pair<_U1, _U2>& __p) : first(__p.first), second(__p.second) {} in pair() argument
68 pair(const pair<_T1,_T2>& __o) : first(__o.first), second(__o.second) {} in pair() argument
72 pair(__move_source<pair<_T1, _T2> > src) : first(_STLP_PRIV _AsMoveSource(src.get().first)), in pair() argument
77 __TRIVIAL_DESTRUCTOR(pair)
81 inline bool _STLP_CALL operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
85 inline bool _STLP_CALL operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) {
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dutility58 struct pair
66 pair(const pair&) = default;
67 pair(pair&&) = default;
68 constexpr pair();
69 pair(const T1& x, const T2& y); // constexpr in C++14
70 template <class U, class V> pair(U&& x, V&& y); // constexpr in C++14
71 template <class U, class V> pair(const pair<U, V>& p); // constexpr in C++14
72 template <class U, class V> pair(pair<U, V>&& p); // constexpr in C++14
74 pair(piecewise_construct_t, tuple<Args1...> first_args,
77 template <class U, class V> pair& operator=(const pair<U, V>& p);
[all …]
/ndk/sources/cxx-stl/stlport/src/
Dlocale_catalog.cpp99 typedef hash_map<string, pair<void*, size_t>, hash<string>, equal_to<string> > Category_Map;
146 pair<Category_iterator, bool> result; in __acquire_category()
149pair<_Ht_iterator<_Slist_iterator<pair<const string,pair<void *,unsigned int> >,_Nonconst_traits<p… in __acquire_category()
151pair<_DBG_iter<_NonDbg_hashtable<pair<const string,pair<void *,unsigned int> >,string,hash<string>… in __acquire_category()
171 Category_Map::value_type __e(name, pair<void*,size_t>((void*)0,size_t(0))); in __acquire_category()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.map/unord.map.cnstr/
Dmove.pass.cpp35 test_allocator<std::pair<const int, std::string> > in main()
37 typedef std::pair<int, std::string> P; in main()
50 test_allocator<std::pair<const int, std::string> >(10) in main()
58 (test_allocator<std::pair<const int, std::string> >(10))); in main()
71 test_allocator<std::pair<const int, std::string> > in main()
73 typedef std::pair<int, std::string> P; in main()
87 test_allocator<std::pair<const int, std::string> >(10) in main()
99 (test_allocator<std::pair<const int, std::string> >(10))); in main()
113 min_allocator<std::pair<const int, std::string> > in main()
115 typedef std::pair<int, std::string> P; in main()
[all …]
Dcopy_alloc.pass.cpp34 test_allocator<std::pair<const int, std::string> > in main()
36 typedef std::pair<int, std::string> P; in main()
50 test_allocator<std::pair<const int, std::string> >(10) in main()
52 C c(c0, test_allocator<std::pair<const int, std::string> >(5)); in main()
62 (test_allocator<std::pair<const int, std::string> >(5))); in main()
74 min_allocator<std::pair<const int, std::string> > in main()
76 typedef std::pair<int, std::string> P; in main()
90 min_allocator<std::pair<const int, std::string> >() in main()
92 C c(c0, min_allocator<std::pair<const int, std::string> >()); in main()
102 (min_allocator<std::pair<const int, std::string> >())); in main()
Dcopy.pass.cpp34 test_allocator<std::pair<const int, std::string> > in main()
36 typedef std::pair<int, std::string> P; in main()
50 test_allocator<std::pair<const int, std::string> >(10) in main()
62 (test_allocator<std::pair<const int, std::string> >(10))); in main()
74 other_allocator<std::pair<const int, std::string> > in main()
76 typedef std::pair<int, std::string> P; in main()
90 other_allocator<std::pair<const int, std::string> >(10) in main()
102 (other_allocator<std::pair<const int, std::string> >(-2))); in main()
115 min_allocator<std::pair<const int, std::string> > in main()
117 typedef std::pair<int, std::string> P; in main()
[all …]
Dinit_size_hash_equal_allocator.pass.cpp36 test_allocator<std::pair<const int, std::string> > in main()
38 typedef std::pair<int, std::string> P; in main()
50 test_allocator<std::pair<const int, std::string> >(10) in main()
61 (test_allocator<std::pair<const int, std::string> >(10))); in main()
73 min_allocator<std::pair<const int, std::string> > in main()
75 typedef std::pair<int, std::string> P; in main()
87 min_allocator<std::pair<const int, std::string> >() in main()
98 (min_allocator<std::pair<const int, std::string> >())); in main()
Drange_size_hash_equal_allocator.pass.cpp39 test_allocator<std::pair<const int, std::string> > in main()
41 typedef std::pair<int, std::string> P; in main()
55 test_allocator<std::pair<const int, std::string> >(10) in main()
66 (test_allocator<std::pair<const int, std::string> >(10))); in main()
78 min_allocator<std::pair<const int, std::string> > in main()
80 typedef std::pair<int, std::string> P; in main()
94 min_allocator<std::pair<const int, std::string> >() in main()
105 (min_allocator<std::pair<const int, std::string> >())); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multimap/
Dmax_load_factor.pass.cpp33 typedef std::pair<int, std::string> P; in main()
39 typedef std::pair<int, std::string> P; in main()
48 min_allocator<std::pair<const int, std::string>>> C; in main()
49 typedef std::pair<int, std::string> P; in main()
55 min_allocator<std::pair<const int, std::string>>> C; in main()
56 typedef std::pair<int, std::string> P; in main()
Dload_factor.pass.cpp29 typedef std::pair<int, std::string> P; in main()
46 typedef std::pair<int, std::string> P; in main()
53 min_allocator<std::pair<const int, std::string>>> C; in main()
54 typedef std::pair<int, std::string> P; in main()
71 min_allocator<std::pair<const int, std::string>>> C; in main()
72 typedef std::pair<int, std::string> P; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.map/
Dmax_load_factor.pass.cpp33 typedef std::pair<int, std::string> P; in main()
39 typedef std::pair<int, std::string> P; in main()
48 min_allocator<std::pair<const int, std::string>>> C; in main()
49 typedef std::pair<int, std::string> P; in main()
55 min_allocator<std::pair<const int, std::string>>> C; in main()
56 typedef std::pair<int, std::string> P; in main()
Dbucket_count.pass.cpp29 typedef std::pair<int, std::string> P; in main()
36 typedef std::pair<int, std::string> P; in main()
54 min_allocator<std::pair<const int, std::string>>> C; in main()
56 typedef std::pair<int, std::string> P; in main()
62 min_allocator<std::pair<const int, std::string>>> C; in main()
64 typedef std::pair<int, std::string> P; in main()
Dload_factor.pass.cpp29 typedef std::pair<int, std::string> P; in main()
46 typedef std::pair<int, std::string> P; in main()
53 min_allocator<std::pair<const int, std::string>>> C; in main()
54 typedef std::pair<int, std::string> P; in main()
71 min_allocator<std::pair<const int, std::string>>> C; in main()
72 typedef std::pair<int, std::string> P; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/utility/pairs/pairs.pair/
Dconst_pair_U_V.pass.cpp22 typedef std::pair<int, short> P1; in main()
23 typedef std::pair<double, long> P2; in main()
32 typedef std::pair<int, short> P1; in main()
33 typedef std::pair<double, long> P2; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multimap/unord.multimap.cnstr/
Dmove.pass.cpp35 test_allocator<std::pair<const int, std::string> > in main()
37 typedef std::pair<int, std::string> P; in main()
50 test_allocator<std::pair<const int, std::string> >(10) in main()
58 (test_allocator<std::pair<const int, std::string> >(10))); in main()
71 test_allocator<std::pair<const int, std::string> > in main()
73 typedef std::pair<int, std::string> P; in main()
87 test_allocator<std::pair<const int, std::string> >(10) in main()
92 typedef std::pair<C::const_iterator, C::const_iterator> Eq; in main()
126 assert((c.get_allocator() == test_allocator<std::pair<const int, std::string> >(10))); in main()
135 min_allocator<std::pair<const int, std::string> > in main()
[all …]
Dcopy_alloc.pass.cpp34 test_allocator<std::pair<const int, std::string> > in main()
36 typedef std::pair<int, std::string> P; in main()
50 test_allocator<std::pair<const int, std::string> >(10) in main()
52 C c(c0, test_allocator<std::pair<const int, std::string> >(5)); in main()
76 (test_allocator<std::pair<const int, std::string> >(5))); in main()
88 min_allocator<std::pair<const int, std::string> > in main()
90 typedef std::pair<int, std::string> P; in main()
104 min_allocator<std::pair<const int, std::string> >() in main()
106 C c(c0, min_allocator<std::pair<const int, std::string> >()); in main()
130 (min_allocator<std::pair<const int, std::string> >())); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.nonmodifying/mismatch/
Dmismatch_pred.pass.cpp38 (std::pair<input_iterator<const int*>, in main()
48 (std::pair<input_iterator<const int*>, in main()
55 (std::pair<int*,int*>(ia+3,ib+3))); in main()
58 (std::pair<int*,int*>(ia+3,ib+3))); in main()
60 (std::pair<int*,int*>(ia+2,ib+2))); in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/mpl/
Dpair.hpp28 struct pair struct
30 typedef pair type; argument
34 BOOST_MPL_AUX_LAMBDA_SUPPORT(2,pair,(T1,T2))
64 BOOST_MPL_AUX_NA_SPEC_NO_ETI(2, pair)
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/utility/pairs/pairs.spec/
Dmake_pair.pass.cpp21 typedef std::pair<int, short> P1; in main()
29 typedef std::pair<std::unique_ptr<int>, short> P1; in main()
35 typedef std::pair<std::unique_ptr<int>, short> P1; in main()
44 typedef std::pair<int, short> P1; in main()

12345678910>>...16