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