GigaPasjans
Loading...
Searching...
No Matches
OOPHelper.h
1
//Wykonane przez Piotra ChudziĆskiego w dniu 26.04.2025
2
#pragma once
3
4
#include "Macro.h"
5
6
namespace
OOPHelper
7
{
13
template
<
class
T,
class
B>
14
FORCE_INLINE
static
bool
InstanceOf(B* ptr, T** out =
nullptr
)
15
{
16
if
(
auto
*derived =
dynamic_cast<
T *
>
(ptr))
17
{
18
if
(out) *out = derived;
19
return
true
;
20
}
21
22
return
false
;
23
}
24
}
foundation
OOPHelper.h
Generated by
1.13.2