UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::CCompatibleCharType Concept Reference

#include <CompatibleCharType.h>

Concept definition

template<typename T, typename CharType>
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition CharType.h:13
Definition CompatibleCharType.h:21

Detailed Description

Concept which describes a character encoding type which is binary compatible with a given character encoding type.

Examples: UE::CCompatibleCharType<ANSICHAR, ANSICHAR> == true // Any character type is compatible with itself UE::CCompatibleCharType<int, int> == false // ints are not character types UE::CCompatibleCharType<ANSICHAR, WIDECHAR> == false // ASCII is not binary compatible with wide strings (different sizes) UE::CCompatibleCharType<ANSICHAR, UTF8CHAR> == true // ASCII is binary compatible with UTF-8 UE::CCompatibleCharType<UTF8CHAR, ANSICHAR> == false // UTF-8 is not binary compatible with ANSI