A context type that delegates EnterWithScope and ExitWithScope to user-provided functions.
More...
#include <with.h>
|
template<typename > |
class | With |
|
A context type that delegates EnterWithScope and ExitWithScope to user-provided functions.
◆ ContextManager()
template<class FEnter , class FExit >
tvm::ContextManager::ContextManager |
( |
FEnter |
f_enter, |
|
|
FExit |
f_exit |
|
) |
| |
|
inlineexplicit |
Constructor of ContextManager.
- Parameters
-
f_enter | The function to call when entering scope. If it's nullptr, do nothing when entering. |
f_exit | The function to call when exiting scope. If it's nullptr, do nothing when exiting. |
◆ With
The documentation for this class was generated from the following file: