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

Method Contains

lib/base/dictionary.cpp:119–124  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

117 * @returns true if the dictionary contains the key, false otherwise.
118 */
119bool Dictionary::Contains(const String& key) const
120{
121 std::shared_lock<std::shared_timed_mutex> lock (m_DataMutex);
122
123 return (m_Data.find(key) != m_Data.end());
124}
125
126/**
127 * Returns an iterator to the beginning of the dictionary.

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected