Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
Include |
#include "Templates/UnrealTemplate.h" |
template<typename T>
T ImplicitConv
(
typename TIdentity< T >::Type Obj
)
Uses implicit conversion to create an instance of a specific type. Useful to make things clearer or circumvent unintended type deduction in templates. Safer than C casts and static_casts, e.g. does not allow down-casts
The object converted to the specified type.
Parameter |
Description |
---|---|
Obj |
The object (usually pointer or reference) to convert. |