MCPcopy Create free account
hub / github.com/HexHive/NASS / replaceValueFor

Method replaceValueFor

binderlib/include_android9/utils/KeyedVector.h:174–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174template<typename KEY, typename VALUE> inline
175ssize_t KeyedVector<KEY,VALUE>::replaceValueFor(const KEY& key, const VALUE& value) {
176 key_value_pair_t<KEY,VALUE> pair(key, value);
177 mVector.remove(pair);
178 return mVector.add(pair);
179}
180
181template<typename KEY, typename VALUE> inline
182ssize_t KeyedVector<KEY,VALUE>::replaceValueAt(size_t index, const VALUE& item) {

Callers 9

ioConfigChangedMethod · 0.80
ioConfigChangedMethod · 0.80
ioConfigChangedMethod · 0.80

Calls 2

removeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected