SPH
Classes | Functions
Finally.h File Reference

Wraps a functor and executes it once the wrapper goes out of scope. More...

#include "common/Assert.h"
#include "common/Traits.h"

Go to the source code of this file.

Classes

class  Finally< TFunctor >
 

Functions

template<typename TFunctor >
Finally< std::decay_t< TFunctor > > finally (TFunctor &&functor)
 Returns Finally object utilizing type deduction. More...
 

Detailed Description

Wraps a functor and executes it once the wrapper goes out of scope.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Finally.h.

Function Documentation

◆ finally()

template<typename TFunctor >
Finally<std::decay_t<TFunctor> > finally ( TFunctor &&  functor)

Returns Finally object utilizing type deduction.

Definition at line 37 of file Finally.h.