tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
scope_exit.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
#ifndef TETL_SCOPE_SCOPE_EXIT_HPP
3
#define TETL_SCOPE_SCOPE_EXIT_HPP
4
5
#include <
etl/_scope/scope_guard.hpp
>
6
7
namespace
etl
{
8
18
template
<
typename
FuncT>
19
struct
scope_exit
: detail::scope_guard<FuncT, detail::scope_exit_impl> {
22
using
detail::scope_guard<FuncT, detail::scope_exit_impl>::scope_guard;
23
};
24
25
// Deduction guide
26
template
<
typename
FuncT>
27
scope_exit
(FuncT) ->
scope_exit<decay_t<FuncT>
>;
28
29
}
// namespace etl
30
31
#endif
// TETL_SCOPE_SCOPE_EXIT_HPP
etl
Definition
adjacent_find.hpp:8
etl::scope_exit
scope_exit(FuncT) -> scope_exit< decay_t< FuncT > >
scope_guard.hpp
etl::scope_exit
The class template scope_exit is a general-purpose scope guard intended to call its exit function whe...
Definition
scope_exit.hpp:19
include
etl
_scope
scope_exit.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0