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

Inherits matador::di::strategy.

Public Member Functions

template<typename ... Args>
 singleton_per_thread_strategy (Args &&...args)
 
void * acquire () override
 Acquires an instance.
 
- Public Member Functions inherited from matador::di::strategy
virtual ~strategy ()=default
 

Member Function Documentation

◆ acquire()

template<class T >
void * matador::di::singleton_per_thread_strategy< T >::acquire ( )
inlineoverridevirtual

Acquires an instance.

Acquires an instance based on the internal strategy and returns an anonymous pointer to the object

Returns
The current injected object depending of the strategy

Implements matador::di::strategy.


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