provides an object which can be returned from functions that will execute the lambda provided during construction when it is destroyed
More...
#include "timemory/utility/types.hpp"
provides an object which can be returned from functions that will execute the lambda provided during construction when it is destroyed
Definition at line 699 of file types.hpp.
◆ destructor() [1/3]
tim::scope::destructor::destructor |
( |
FuncT && |
_func | ) |
|
|
inline |
Definition at line 702 of file types.hpp.
703 : m_functor(std::forward<FuncT>(_func))
◆ destructor() [2/3]
tim::scope::destructor::destructor |
( |
const destructor & |
| ) |
|
|
delete |
◆ destructor() [3/3]
tim::scope::destructor::destructor |
( |
destructor && |
rhs | ) |
|
|
inlinenoexcept |
Definition at line 711 of file types.hpp.
712 : m_functor(std::move(rhs.m_functor))
714 rhs.m_functor = []() {};
◆ ~destructor()
tim::scope::destructor::~destructor |
( |
| ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
Definition at line 717 of file types.hpp.
721 m_functor = std::move(rhs.m_functor);
722 rhs.m_functor = []() {};
The documentation for this struct was generated from the following file: