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

Method get

example/pool_provider.cpp:84–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83 template <class T, class TInitialization, class TMemory, class... TArgs>
84 auto get(const TInitialization& // direct/uniform
85 ,
86 const TMemory& // stack/heap
87 ,
88 TArgs&&... args) const {
89 auto memory = pool_allocator::allocate<T>();
90 return std::unique_ptr<T, pool_deleter>{new (memory) T(std::forward<TArgs>(args)...)};
91 }
92};
93
94/*<override `di` provider configuration>*/

Callers 15

exampleMethod · 0.45
serviceClass · 0.45
appClass · 0.45
mainFunction · 0.45
dependency1Method · 0.45
exampleMethod · 0.45
appMethod · 0.45
multiple_interfacesMethod · 0.45
mainFunction · 0.45
createMethod · 0.45
example.cppFile · 0.45
exampleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected