OpenVPN 3 Core Library
Loading...
Searching...
No Matches
cleanup.hpp File Reference
#include <utility>
#include <optional>
#include <concepts>
#include <functional>
#include <type_traits>
Include dependency graph for cleanup.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openvpn::CleanupType< F >
 A scope guard that runs a callable on destruction unless dismissed or released. More...
 

Namespaces

namespace  openvpn
 

Functions

template<typename F >
requires std::invocable<F>
CleanupType< F > openvpn::Cleanup (F method) noexcept(std::is_nothrow_move_constructible_v< F >)
 Factory function to create a CleanupType object.