Home
last modified time | relevance | path

Searched refs:Key (Results 1 – 16 of 16) sorted by relevance

/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/container/
Dcontainer_fwd.hpp76 template <class Key
77 ,class Compare = std::less<Key>
78 ,class Allocator = std::allocator<Key> >
82 template <class Key
83 ,class Compare = std::less<Key>
84 ,class Allocator = std::allocator<Key> >
88 template <class Key
90 ,class Compare = std::less<Key>
91 ,class Allocator = std::allocator<std::pair<const Key, T> > >
95 template <class Key
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.map/
Dcompare.pass.cpp21 struct Key { struct
22 template <typename T> Key(const T&) {} in Key() function
23 bool operator== (const Key&) const { return true; } in operator ==() argument
29 struct hash<Key>
31 size_t operator()(Key const &) const {return 0;} in operator ()()
38 std::unordered_map<Key, int>::iterator it = in main()
39 std::unordered_map<Key, int>().find(Key(0)); in main()
40 std::pair<std::unordered_map<Key, int>::iterator, bool> result = in main()
41 std::unordered_map<Key, int>().insert(std::make_pair(Key(0), 0)); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/associative/map/
Dcompare.pass.cpp21 struct Key { struct
22 template <typename T> Key(const T&) {} in Key() function
23 bool operator< (const Key&) const { return false; } in operator <() argument
29 std::map<Key, int>::iterator it = std::map<Key, int>().find(Key(0)); in main()
30 std::pair<std::map<Key, int>::iterator, bool> result = in main()
31 std::map<Key, int>().insert(std::make_pair(Key(0), 0)); in main()
/ndk/tests/device/test-gnustl-full/unit/
Dmap_test.cpp303 struct Key struct
305 Key() : m_data(0) {} in Key() function
306 explicit Key(int data) : m_data(data) {} in Key() argument
313 bool operator () (Key lhs, Key rhs) const in operator ()() argument
316 bool operator () (Key lhs, int rhs) const in operator ()()
319 bool operator () (int lhs, Key rhs) const in operator ()()
325 bool operator () (Key const volatile *lhs, Key const volatile *rhs) const in operator ()()
328 bool operator () (Key const volatile *lhs, int rhs) const in operator ()()
331 bool operator () (int lhs, Key const volatile *rhs) const in operator ()()
339 typedef map<Key, int, KeyCmp> Container; in template_methods()
[all …]
Dset_test.cpp360 struct Key struct
362 Key() : m_data(0) {} in Key() argument
363 explicit Key(int data) : m_data(data) {} in Key() function
370 bool operator () (Key lhs, Key rhs) const in operator ()() argument
373 bool operator () (Key lhs, int rhs) const in operator ()()
376 bool operator () (int lhs, Key rhs) const in operator ()()
382 bool operator () (Key const volatile *lhs, Key const volatile *rhs) const in operator ()()
385 bool operator () (Key const volatile *lhs, int rhs) const in operator ()()
388 bool operator () (int lhs, Key const volatile *rhs) const in operator ()()
396 typedef set<Key, KeyCmp> KeySet; in template_methods()
[all …]
Dunordered_test.cpp514 struct Key struct
516 Key() : m_data(0) {} in Key() argument
517 explicit Key(int data) : m_data(data) {} in Key() argument
522 bool operator==(const Key&) const; argument
528 size_t operator () (Key key) const in operator ()()
537 bool operator () (Key lhs, Key rhs) const in operator ()()
540 bool operator () (Key lhs, int rhs) const in operator ()()
543 bool operator () (int lhs, Key rhs) const in operator ()()
549 size_t operator () (Key const volatile *key) const in operator ()()
558 bool operator () (Key const volatile *lhs, Key const volatile *rhs) const in operator ()()
[all …]
Dfind_test.cpp51 struct Key struct
90 Key keys[10] = { {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0} }; in findif0()
91 Key const* k = find(keys + 0, keys + 10, 5); in findif0()
/ndk/tests/device/test-stlport/unit/
Dmap_test.cpp303 struct Key struct
305 Key() : m_data(0) {} in Key() function
306 explicit Key(int data) : m_data(data) {} in Key() function
313 bool operator () (Key lhs, Key rhs) const in operator ()() argument
316 bool operator () (Key lhs, int rhs) const in operator ()()
319 bool operator () (int lhs, Key rhs) const in operator ()()
325 bool operator () (Key const volatile *lhs, Key const volatile *rhs) const in operator ()()
328 bool operator () (Key const volatile *lhs, int rhs) const in operator ()()
331 bool operator () (int lhs, Key const volatile *rhs) const in operator ()()
339 typedef map<Key, int, KeyCmp> Container; in template_methods()
[all …]
Dset_test.cpp360 struct Key struct
362 Key() : m_data(0) {} in Key() argument
363 explicit Key(int data) : m_data(data) {} in Key() argument
370 bool operator () (Key lhs, Key rhs) const in operator ()() argument
373 bool operator () (Key lhs, int rhs) const in operator ()()
376 bool operator () (int lhs, Key rhs) const in operator ()()
382 bool operator () (Key const volatile *lhs, Key const volatile *rhs) const in operator ()()
385 bool operator () (Key const volatile *lhs, int rhs) const in operator ()()
388 bool operator () (int lhs, Key const volatile *rhs) const in operator ()()
396 typedef set<Key, KeyCmp> KeySet; in template_methods()
[all …]
Dunordered_test.cpp514 struct Key struct
516 Key() : m_data(0) {} in Key() argument
517 explicit Key(int data) : m_data(data) {} in Key() function
522 bool operator==(const Key&) const; argument
528 size_t operator () (Key key) const in operator ()()
537 bool operator () (Key lhs, Key rhs) const in operator ()()
540 bool operator () (Key lhs, int rhs) const in operator ()()
543 bool operator () (int lhs, Key rhs) const in operator ()()
549 size_t operator () (Key const volatile *key) const in operator ()()
558 bool operator () (Key const volatile *lhs, Key const volatile *rhs) const in operator ()()
[all …]
Dfind_test.cpp51 struct Key struct
90 Key keys[10] = { {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0} }; in findif0()
91 Key const* k = find(keys + 0, keys + 10, 5); in findif0()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/utils/
Dfixed_mapping.hpp59 template<typename Key, typename Value, typename Compare = std::less<Key> >
62 typedef std::pair<Key,Value> elem_type;
66 typedef typename call_traits<Key>::param_type key_param_type;
76 struct p1 : public std::binary_function<elem_type,Key,bool>
78 … bool operator()( elem_type const& x, Key const& y ) const { return Compare()( x.first, y ); } in operator ()()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dset21 template <class Key, class Compare = less<Key>,
22 class Allocator = allocator<Key>>
27 typedef Key key_type;
166 template <class Key, class Compare, class Allocator>
168 operator==(const set<Key, Compare, Allocator>& x,
169 const set<Key, Compare, Allocator>& y);
171 template <class Key, class Compare, class Allocator>
173 operator< (const set<Key, Compare, Allocator>& x,
174 const set<Key, Compare, Allocator>& y);
176 template <class Key, class Compare, class Allocator>
[all …]
Dmap21 template <class Key, class T, class Compare = less<Key>,
22 class Allocator = allocator<pair<const Key, T>>>
27 typedef Key key_type;
187 template <class Key, class T, class Compare, class Allocator>
189 operator==(const map<Key, T, Compare, Allocator>& x,
190 const map<Key, T, Compare, Allocator>& y);
192 template <class Key, class T, class Compare, class Allocator>
194 operator< (const map<Key, T, Compare, Allocator>& x,
195 const map<Key, T, Compare, Allocator>& y);
197 template <class Key, class T, class Compare, class Allocator>
[all …]
Dunordered_map23 template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
24 class Alloc = allocator<pair<const Key, T>>>
29 typedef Key key_type;
172 template <class Key, class T, class Hash, class Pred, class Alloc>
173 void swap(unordered_map<Key, T, Hash, Pred, Alloc>& x,
174 unordered_map<Key, T, Hash, Pred, Alloc>& y)
177 template <class Key, class T, class Hash, class Pred, class Alloc>
179 operator==(const unordered_map<Key, T, Hash, Pred, Alloc>& x,
180 const unordered_map<Key, T, Hash, Pred, Alloc>& y);
182 template <class Key, class T, class Hash, class Pred, class Alloc>
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ext/
Dhash_map21 template <class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>,
22 class Alloc = allocator<pair<const Key, T>>>
27 typedef Key key_type;
96 template <class Key, class T, class Hash, class Pred, class Alloc>
97 void swap(hash_map<Key, T, Hash, Pred, Alloc>& x,
98 hash_map<Key, T, Hash, Pred, Alloc>& y);
100 template <class Key, class T, class Hash, class Pred, class Alloc>
102 operator==(const hash_map<Key, T, Hash, Pred, Alloc>& x,
103 const hash_map<Key, T, Hash, Pred, Alloc>& y);
105 template <class Key, class T, class Hash, class Pred, class Alloc>
[all …]