#include <Utility.hh>
Definition at line 366 of file Utility.hh.
◆ ScopeDestructor() [1/3]
template<typename FuncT >
PTL::ScopeDestructor::ScopeDestructor |
( |
FuncT && |
_func | ) |
|
|
inline |
Definition at line 369 of file Utility.hh.
370 : m_functor(std::forward<FuncT>(_func))
371 {}
◆ ScopeDestructor() [2/3]
◆ ScopeDestructor() [3/3]
Definition at line 378 of file Utility.hh.
379 : m_functor(std::move(rhs.m_functor))
380 {
381 rhs.m_functor = []() {};
382 }
◆ ~ScopeDestructor()
PTL::ScopeDestructor::~ScopeDestructor |
( |
| ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
Definition at line 384 of file Utility.hh.
385 {
386 if(this != &rhs)
387 {
388 m_functor = std::move(rhs.m_functor);
389 rhs.m_functor = []() {};
390 }
391 return *this;
392 }
The documentation for this struct was generated from the following file: