MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / MakeNonOwningPointerVector

Function MakeNonOwningPointerVector

Bcore/src/main/cpp/base/stl_util.h:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145// Returns a copy of the passed vector that doesn't memory-own its entries.
146template <typename T>
147static inline std::vector<T*> MakeNonOwningPointerVector(const std::vector<std::unique_ptr<T>>& src) {
148 std::vector<T*> result;
149 result.reserve(src.size());
150 for (const std::unique_ptr<T>& t : src) {
151 result.push_back(t.get());
152 }
153 return result;
154}
155
156} // namespace art_lkchan
157

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected