Navigation
API > API/Runtime > API/Runtime/Core
Description
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
| Name | ImplicitConv |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
| Include Path | #include "Templates/UnrealTemplate.h" |
template<typename T>
T ImplicitConv
(
typename TIdentity < T >::Type Obj
)
The object converted to the specified type.
Parameters
| Name | Remarks |
|---|---|
| Obj | The object (usually pointer or reference) to convert. |