MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / ScenarioScope

Class ScenarioScope

include/cucumber-cpp/internal/ContextManager.hpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected