MCPcopy Create free account
hub / github.com/boost-ext/di / get

Method get

example/custom_provider.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37 template <class T, class TMemory, class... TArgs>
38 auto get(const di::type_traits::direct&, const TMemory& // stack/heap
39 ,
40 TArgs&&... args) const {
41 return new T(std::forward<TArgs>(args)...);
42 }
43
44 template <class T, class TMemory, class... TArgs>
45 auto get(const di::type_traits::uniform&, const TMemory& // stack/heap

Callers 1

exampleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected