matador::di::inject< T > Class Template Reference
module module_

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)
 
injectoperator= (const inject &x)
 
 inject (inject &&x) noexcept
 
injectoperator= (inject &&x) noexcept
 
T * operator-> () const
 
T * get () const
 
T & operator* () const
 

Detailed Description

template<class T>
class matador::di::inject< T >

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.

Template Parameters
TType of the interface

The documentation for this class was generated from the following file:
  • matador/utils/di.hpp