MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / contains

Method contains

Source/Support/Array.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool Array::contains(NotNull<Value, 1> value) const {
52 return std::find_if(_data.begin(), _data.end(), [&](const Own<Value>& val) {
53 return value->equals(val.get());
54 }) != _data.end();
55}
56
57void Array::add(Own<Value>&& value) {
58 AssertIf(_traversing, "Can not add item to array while traversing");

Callers 9

setOrientationBisMethod · 0.45
handleClickOutsideFunction · 0.45
addControllerInRenderMethod · 0.45
hasListenerMethod · 0.45
cliSkipEntrySearchDirFunction · 0.45
Array_containsFunction · 0.45
array_containsFunction · 0.45
sensor_containsFunction · 0.45

Calls 4

getMethod · 0.65
beginMethod · 0.45
endMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected