Franky  0.9.1
A High-Level Motion API for Franka
Public Member Functions | List of all members
franky::scope_guard Class Reference

A scope guard that executes a function when it goes out of scope. More...

#include <scope_guard.hpp>

Public Member Functions

 scope_guard (std::function< void()> f)
 Constructor that takes a function to execute when the guard goes out of scope. More...
 
 ~scope_guard ()
 

Detailed Description

A scope guard that executes a function when it goes out of scope.

Constructor & Destructor Documentation

◆ scope_guard()

franky::scope_guard::scope_guard ( std::function< void()>  f)
inlineexplicit

Constructor that takes a function to execute when the guard goes out of scope.

Parameters
fThe function to execute.

◆ ~scope_guard()

franky::scope_guard::~scope_guard ( )
inline

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