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
6
7namespace etl {
8
18template <typename FuncT>
19struct 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
26template <typename FuncT>
28
29} // namespace etl
30
31#endif // TETL_SCOPE_SCOPE_EXIT_HPP
Definition adjacent_find.hpp:8
scope_exit(FuncT) -> scope_exit< decay_t< FuncT > >
The class template scope_exit is a general-purpose scope guard intended to call its exit function whe...
Definition scope_exit.hpp:19