| 34 | |
| 35 | template<class T> |
| 36 | class ScenarioScope { |
| 37 | public: |
| 38 | ScenarioScope(); |
| 39 | |
| 40 | T& operator*(); |
| 41 | T* operator->(); |
| 42 | T* get(); |
| 43 | |
| 44 | private: |
| 45 | internal::ContextManager contextManager; |
| 46 | std::shared_ptr<T> context; |
| 47 | static std::weak_ptr<T> contextReference; |
| 48 | }; |
| 49 | |
| 50 | template<class T> |
| 51 | std::weak_ptr<T> ScenarioScope<T>::contextReference; |
nothing calls this directly
no outgoing calls
no test coverage detected