Resolves and provides the requested service. More...
#include <di.hpp>
Public Member Functions | |
inject (const std::string &name) | |
inject (module &m) | |
inject (module &m, const std::string &name) | |
inject (const inject &x) | |
inject & | operator= (const inject &x) |
inject (inject &&x) noexcept | |
inject & | operator= (inject &&x) noexcept |
T * | operator-> () const |
T * | get () const |
T & | operator* () const |
Resolves and provides the requested service.
The class inject acts a holder for the requested service. On construction it tries to resolve the given template type within the global service repository.
T | Type of the interface |