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

Method CopyTo

lib/base/dictionary.cpp:206–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void Dictionary::CopyTo(const Dictionary::Ptr& dest) const
207{
208 std::shared_lock<std::shared_timed_mutex> lock (m_DataMutex);
209
210 for (const Dictionary::Pair& kv : m_Data) {
211 dest->Set(kv.first, kv.second);
212 }
213}
214
215/**
216 * Makes a shallow copy of a dictionary.

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected