MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Contains

Method Contains

lib/base/array.cpp:137–142  ·  view source on GitHub ↗

* Checks whether the array contains the specified value. * * @param value The value. * @returns true if the array contains the value, false otherwise. */

Source from the content-addressed store, hash-verified

135 * @returns true if the array contains the value, false otherwise.
136 */
137bool Array::Contains(const Value& value) const
138{
139 ObjectLock olock(this);
140
141 return (std::find(m_Data.begin(), m_Data.end(), value) != m_Data.end());
142}
143
144/**
145 * Insert the given value at the specified index

Callers 15

HandleRequestMethod · 0.45
HandleConfigUpdateMethod · 0.45
CheckConfigChangeMethod · 0.45
GetFilterTargetsMethod · 0.45
HandleRequestMethod · 0.45
RequestCertificateMethod · 0.45
HandleRequestMethod · 0.45
HandlePostMethod · 0.45
MessageHandlerMethod · 0.45
HandleRequestMethod · 0.45

Calls 3

findFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected