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

Method FromVector

lib/base/array.hpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67 template<typename T>
68 static Array::Ptr FromVector(const std::vector<T>& v)
69 {
70 Array::Ptr result = new Array();
71 ObjectLock olock(result);
72 std::copy(v.begin(), v.end(), std::back_inserter(result->m_Data));
73 return result;
74 }
75
76 template<typename T>
77 std::set<T> ToSet()

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected