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

Method FromSet

lib/base/array.hpp:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83 template<typename T>
84 static Array::Ptr FromSet(const std::set<T>& v)
85 {
86 Array::Ptr result = new Array();
87 ObjectLock olock(result);
88 std::copy(v.begin(), v.end(), std::back_inserter(result->m_Data));
89 return result;
90 }
91
92 Object::Ptr Clone() const override;
93

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected