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 \
6
static auto MR_CONCAT( __mrOnInit_, __LINE__ ) = ::MR::detail::FuncCallHelper{} ->* [] () -> void
7
8
namespace
MR::detail
9
{
10
11
class
FuncCallHelper
12
{
13
public
:
14
template
<
typename
Func>
15
auto
operator ->*
( Func&& func )
16
{
17
func();
18
return
*
this
;
19
}
20
};
21
22
}
// namespace MR::detail
MRMacros.h
MR::detail::FuncCallHelper
Definition
MROnInit.h:12
MR::detail::FuncCallHelper::operator->*
auto operator->*(Func &&func)
Definition
MROnInit.h:15
MR::detail
Definition
MRFinally.h:34
MeshLib
source
MRMesh
MROnInit.h
Generated by
1.11.0