μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
scope_exit Struct Reference

Public Member Functions

 scope_exit (std::function< void()> f) noexcept
 
 ~scope_exit ()
 
 scope_exit (std::function< void()> f) noexcept
 
 ~scope_exit ()
 

Public Attributes

std::function< void()> f_
 

Detailed Description

Definition at line 313 of file test_interpreter.cpp.

Constructor & Destructor Documentation

◆ scope_exit() [1/2]

scope_exit::scope_exit ( std::function< void()>  f)
inlineexplicitnoexcept

Definition at line 315 of file test_interpreter.cpp.

◆ ~scope_exit() [1/2]

scope_exit::~scope_exit ( )
inline

Definition at line 316 of file test_interpreter.cpp.

References f_.

◆ scope_exit() [2/2]

scope_exit::scope_exit ( std::function< void()>  f)
inlineexplicitnoexcept

Definition at line 383 of file test_interpreter.cpp.

◆ ~scope_exit() [2/2]

scope_exit::~scope_exit ( )
inline

Definition at line 384 of file test_interpreter.cpp.

References f_.

Member Data Documentation

◆ f_

std::function< void()> scope_exit::f_

Definition at line 314 of file test_interpreter.cpp.

Referenced by ~scope_exit().


The documentation for this struct was generated from the following files: