Blender
V4.3
source
blender
freestyle
intern
system
Cast.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
12
namespace
Freestyle
{
13
14
namespace
Cast {
15
template
<
class
T,
class
U>
U
*
cast
(T *in)
16
{
17
if
(!in) {
18
return
nullptr
;
19
}
20
return
dynamic_cast<
U
*
>
(in);
21
}
22
}
// end of namespace Cast
23
24
}
/* namespace Freestyle */
U
unsigned int U
Definition
btGjkEpa3.h:78
Freestyle::Cast::cast
U * cast(T *in)
Definition
Cast.h:15
Freestyle
inherits from class Rep
Definition
AppCanvas.cpp:20
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0