Home
last modified time | relevance | path

Searched refs:KeyType (Results 1 – 25 of 60) sorted by relevance

123

/third_party/rust/crates/clap/src/
Dmkeymap.rs10 key: KeyType,
25 pub(crate) enum KeyType { enum
31 impl KeyType { implementation
33 matches!(self, KeyType::Position(_)) in is_position()
37 impl PartialEq<usize> for KeyType { implementation
40 KeyType::Position(x) => x == rhs, in eq()
46 impl PartialEq<&str> for KeyType { implementation
49 KeyType::Long(l) => l == rhs, in eq()
55 impl PartialEq<str> for KeyType { implementation
58 KeyType::Long(l) => l == rhs, in eq()
[all …]
/third_party/json/include/nlohmann/
Dordered_map.hpp67 template<class KeyType, detail::enable_if_t<
68 detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0>
69 std::pair<iterator, bool> emplace(KeyType && key, T && t) in emplace()
78 Container::emplace_back(std::forward<KeyType>(key), std::forward<T>(t)); in emplace()
87 template<class KeyType, detail::enable_if_t<
88 detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0>
89 T & operator[](KeyType && key) in operator []()
91 return emplace(std::forward<KeyType>(key), T{}).first->second; in operator []()
99 template<class KeyType, detail::enable_if_t<
100 detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0>
[all …]
Djson.hpp1990 template<class KeyType, detail::enable_if_t<
1991 detail::is_usable_as_basic_json_key_type<basic_json_t, KeyType>::value, int> = 0>
1992 reference at(KeyType && key) in at()
2000 auto it = m_value.object->find(std::forward<KeyType>(key)); in at()
2003 …(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not fo… in at()
2028 template<class KeyType, detail::enable_if_t<
2029 detail::is_usable_as_basic_json_key_type<basic_json_t, KeyType>::value, int> = 0>
2030 const_reference at(KeyType && key) const in at()
2038 auto it = m_value.object->find(std::forward<KeyType>(key)); in at()
2041 …(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not fo… in at()
[all …]
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/containers/
Dmru_cache.h42 template <class KeyType, class ValueType, class CompareType>
45 typedef std::map<KeyType, ValueType, CompareType> Type;
49 template <class KeyType,
58 typedef std::pair<KeyType, PayloadType> value_type;
63 typename MapType<KeyType, typename PayloadList::iterator, HashOrCompareType>::Type KeyIndex;
94 iterator Put(const KeyType &key, Payload &&payload) in Put()
119 iterator Get(const KeyType &key) in Get()
133 iterator Peek(const KeyType &key) in Peek()
141 const_iterator Peek(const KeyType &key) const in Peek()
230 template <class KeyType, class PayloadType, class CompareType = std::less<KeyType>>
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/ARM/
DARMGenSystemRegister.inc164 struct KeyType {
167 KeyType Key = { Name.upper() };
170 [](const IndexType &LHS, const KeyType &RHS) {
224 struct KeyType {
227 KeyType Key = { Encoding };
230 [](const IndexType &LHS, const KeyType &RHS) {
338 struct KeyType {
341 KeyType Key = { Name.upper() };
344 [](const IndexType &LHS, const KeyType &RHS) {
402 struct KeyType {
[all …]
/third_party/json/docs/mkdocs/docs/api/basic_json/
Dfind.md9 template<typename KeyType>
10 iterator find(KeyType&& key);
11 template<typename KeyType>
12 const_iterator find(KeyType&& key) const;
17 2. See 1. This overload is only available if `KeyType` is comparable with `#!cpp typename object_t:…
22 `KeyType`
Dcount.md8 template<typename KeyType>
9 size_type count(KeyType&& key) const;
14 2. See 1. This overload is only available if `KeyType` is comparable with `#!cpp typename object_t:…
19 `KeyType`
78 2. Added in version 1.0.0. Changed parameter `key` type to `KeyType&&` in version 3.11.0.
Dcontains.md8 template<typename KeyType>
9 bool contains(KeyType&& key) const;
17 2. See 1. This overload is only available if `KeyType` is comparable with `#!cpp typename object_t:…
23 `KeyType`
117 2. Added in version 3.6.0. Extended template `KeyType` to support comparable types in version 3.11.…
/third_party/node/deps/v8/include/cppgc/
Dvisitor.h168 template <typename KeyType, typename ValueType>
169 void TraceEphemeron(const WeakMember<KeyType>& weak_member_key, in TraceEphemeron()
171 const KeyType* key = weak_member_key.GetRawAtomic(); in TraceEphemeron()
184 TraceTrait<KeyType>::GetTraceDescriptor(key).base_object_payload; in TraceEphemeron()
201 template <typename KeyType, typename ValueType>
202 void TraceEphemeron(const WeakMember<KeyType>& weak_member_key, in TraceEphemeron()
206 const KeyType* key = weak_member_key.GetRawAtomic(); in TraceEphemeron()
219 TraceTrait<KeyType>::GetTraceDescriptor(key).base_object_payload; in TraceEphemeron()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/AArch64/
DAArch64GenSystemOperands.inc1096 struct KeyType {
1099 KeyType Key = { Name.upper() };
1102 [](const IndexType &LHS, const KeyType &RHS) {
1137 struct KeyType {
1140 KeyType Key = { Encoding };
1143 [](const IndexType &LHS, const KeyType &RHS) {
1181 struct KeyType {
1184 KeyType Key = { Name.upper() };
1187 [](const IndexType &LHS, const KeyType &RHS) {
1211 struct KeyType {
[all …]
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-5/
Dobjc_template.rs51 impl<KeyType: 'static, ObjectType: 'static>
52 IFooMultiGeneric<KeyType, ObjectType> for FooMultiGeneric
55 pub trait IFooMultiGeneric<KeyType: 'static, ObjectType: 'static>:
58 unsafe fn objectForKey_(&self, key: *mut KeyType) -> *mut ObjectType in objectForKey_()
/third_party/gn/src/gn/
Dstring_atom.cc42 using KeyType = const std::string*; typedef
47 KeyType key;
101 void Insert(Node* node, size_t hash, KeyType key) { in Insert()
192 KeyType find(std::string_view key) { in find()
198 KeyType result = GetStringAtomSet().find(key); in find()
/third_party/vixl/test/
Dtest-invalset.cc36 typedef ptrdiff_t KeyType; typedef
43 Obj(KeyType key, ValType val) : key_(key), val_(val) {} in Obj()
44 KeyType key_;
63 static const KeyType kInvalidKey = PTRDIFF_MAX;
69 KeyType,
76 inline KeyType InvalSet<Obj,
78 KeyType,
87 KeyType,
90 kReclaimFactor>::SetKey(Obj* obj, KeyType key) { in SetKey()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceGlobalContext.cpp65 template <typename KeyType, class Enable = void> struct KeyCompare {};
67 template <typename KeyType>
68 struct KeyCompare<KeyType,
70 std::is_integral<KeyType>::value ||
71 std::is_same<KeyType, RelocatableTuple>::value>::type> {
72 bool operator()(const KeyType &Value1, const KeyType &Value2) const { in operator ()()
76 template <typename KeyType>
77 struct KeyCompare<KeyType, typename std::enable_if<
78 std::is_floating_point<KeyType>::value>::type> {
79 bool operator()(const KeyType &Value1, const KeyType &Value2) const { in operator ()()
[all …]
/third_party/vixl/src/
Dinvalset-vixl.h78 class KeyType, \
79 KeyType INVALID_KEY, \
85 ElementType, N_PREALLOCATED_ELEMENTS, KeyType, INVALID_KEY, RECLAIM_FROM, \
104 static const KeyType kInvalidKey = INVALID_KEY;
131 KeyType GetMinElementKey();
134 static KeyType GetKey(const ElementType& element);
135 static void SetKey(ElementType* element, KeyType key);
138 typedef KeyType _KeyType;
208 KeyType cached_min_key_; // Valid iff `valid_cached_min_` is true.
264 typedef typename S::_KeyType KeyType; typedef
[all …]
/third_party/typescript/tests/baselines/reference/
DinferTypeConstraintInstantiationCircularity.symbols2 type AMappedType<T> = { [KeyType in keyof T]: number };
5 >KeyType : Symbol(KeyType, Decl(inferTypeConstraintInstantiationCircularity.ts, 0, 25))
86 type Simplify<T> = {[KeyType in keyof T]: T[KeyType]};
89 >KeyType : Symbol(KeyType, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 21))
92 >KeyType : Symbol(KeyType, Decl(inferTypeConstraintInstantiationCircularity.ts, 32, 21))
DinferTypeConstraintInstantiationCircularity.js2 type AMappedType<T> = { [KeyType in keyof T]: number };
34 type Simplify<T> = {[KeyType in keyof T]: T[KeyType]};
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/
Dobjc_template.rs51 impl<KeyType: 'static, ObjectType: 'static>
52 IFooMultiGeneric<KeyType, ObjectType> for FooMultiGeneric
55 pub trait IFooMultiGeneric<KeyType: 'static, ObjectType: 'static>:
/third_party/typescript/tests/cases/compiler/
DinferTypeConstraintInstantiationCircularity.ts2 type AMappedType<T> = { [KeyType in keyof T]: number };
34 type Simplify<T> = {[KeyType in keyof T]: T[KeyType]};
/third_party/typescript/tests/baselines/reference/organizeImports/
DUnused_false_positive_module_augmentation.ts9 test(name: KeyType): boolean;
20 test(name: KeyType): boolean;
DUnused_preserve_imports_for_module_augmentation_in_non_declaration_file.ts9 test(name: KeyType): boolean;
20 test(name: KeyType): boolean;
/third_party/json/include/nlohmann/detail/meta/
Dtype_traits.hpp522 …bool ExcludeObjectKeyType = RequireTransparentComparator, typename KeyType = uncvref_t<KeyTypeCVRe…
525 && !(ExcludeObjectKeyType && std::is_same<KeyType,
529 && !is_json_pointer<KeyType>::value,
540 …bool ExcludeObjectKeyType = RequireTransparentComparator, typename KeyType = uncvref_t<KeyTypeCVRe…
545 && !is_json_iterator_of<BasicJsonType, KeyType>::value,
549 template<typename ObjectType, typename KeyType>
550 using detect_erase_with_key_type = decltype(std::declval<ObjectType&>().erase(std::declval<KeyType>…
553 template<typename BasicJsonType, typename KeyType>
557 typename BasicJsonType::object_t, KeyType >::value,
/third_party/mbedtls/tests/scripts/
Dgenerate_psa_tests.py169 kt: crypto_knowledge.KeyType, argument
224 kt = crypto_knowledge.KeyType(key_type)
228 kt = crypto_knowledge.KeyType(constr, [curve_family])
264 kt: crypto_knowledge.KeyType argument
300 kt = crypto_knowledge.KeyType(key_type)
304 kt = crypto_knowledge.KeyType(constr, [curve_family])
322 self.key_types = [crypto_knowledge.KeyType(kt_expr)
330 kt: Optional[crypto_knowledge.KeyType] = None, argument
673 kt: crypto_knowledge.KeyType, argument
705 kt = crypto_knowledge.KeyType(key_type)
[all …]
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dobjc_template.h8 @interface FooMultiGeneric<__covariant KeyType, __covariant ObjectType>
9 - (nullable ObjectType)objectForKey:(KeyType)key;
DnsBaseHashtable.hpp20 typedef typename KeyClass::KeyType KeyType; typedef in nsBaseHashtable

123