Minsky
minsky::OnStackExit< F > Struct Template Reference

arrange for a functional to be called on stack exit More...

#include <str.h>

Collaboration diagram for minsky::OnStackExit< F >:
Collaboration graph

Public Member Functions

 OnStackExit (F f)
 
 ~OnStackExit ()
 

Public Attributes

f
 

Detailed Description

template<class F>
struct minsky::OnStackExit< F >

arrange for a functional to be called on stack exit

Definition at line 77 of file str.h.

Constructor & Destructor Documentation

◆ OnStackExit()

template<class F >
minsky::OnStackExit< F >::OnStackExit ( f)
inline

Definition at line 80 of file str.h.

80 : f(f) {}

◆ ~OnStackExit()

template<class F >
minsky::OnStackExit< F >::~OnStackExit ( )
inline

Definition at line 81 of file str.h.

References minsky::OnStackExit< F >::f.

81 {f();}

Member Data Documentation

◆ f

template<class F >
F minsky::OnStackExit< F >::f

Definition at line 79 of file str.h.

Referenced by minsky::OnStackExit< F >::~OnStackExit().


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