MeshLib Documentation
Loading...
Searching...
No Matches
MROnInit.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMacros.h"
4
5#define MR_ON_INIT \
6static auto MR_CONCAT( __mrOnInit_, __LINE__ ) = ::MR::detail::FuncCallHelper{} ->* [] () -> void
7
8namespace MR::detail
9{
10
12{
13public:
14 template <typename Func>
15 auto operator ->*( Func&& func )
16 {
17 func();
18 return *this;
19 }
20};
21
22} // namespace MR::detail
Definition MROnInit.h:12
auto operator->*(Func &&func)
Definition MROnInit.h:15
Definition MRFinally.h:34