LeviLamina
Loading...
Searching...
No Matches
ScopeExit.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Bedrock {
6
7class ScopeExit {
8public:
9 // member variables
10 // NOLINTBEGIN
12 // NOLINTEND
13
14public:
15 // prevent constructor by default
16 ScopeExit& operator=(ScopeExit const&);
17 ScopeExit(ScopeExit const&);
18 ScopeExit();
19
20public:
21 // member functions
22 // NOLINTBEGIN
23#ifdef LL_PLAT_C
24 MCNAPI explicit ScopeExit(::std::function<void()> function);
25
26 MCNAPI ::Bedrock::ScopeExit& operator=(::std::function<void()> function);
27#endif
28
29 MCNAPI ~ScopeExit();
30 // NOLINTEND
31
32public:
33 // constructor thunks
34 // NOLINTBEGIN
35#ifdef LL_PLAT_C
36 MCNAPI void* $ctor(::std::function<void()> function);
37#endif
38 // NOLINTEND
39
40public:
41 // destructor thunk
42 // NOLINTBEGIN
43 MCNAPI void $dtor();
44 // NOLINTEND
45};
46
47} // namespace Bedrock
MCAPI void $dtor()
Definition Alias.h:14