Blender V4.3
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
12namespace Freestyle {
13
14namespace Cast {
15template<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 */
unsigned int U
Definition btGjkEpa3.h:78
U * cast(T *in)
Definition Cast.h:15
inherits from class Rep
Definition AppCanvas.cpp:20