Go to the source code of this file.
◆ SIG
◆ SIG_ENDCHAR
◆ SIG_STARTCHAR
◆ GetGeneratedTypeName()
| const TCHAR * GetGeneratedTypeName |
( |
| ) |
|
|
inline |
Returns a pointer to a static string representing the name of the type, e.g.:
const TCHAR* FStringName = GetGeneratedTypeName<FString>() // "FString"
Caveats:
- The strings are compiler-dependent and thus non-portable, and so shouldn't be saved or relied upon as a form of identity, e.g. the example above returns "class FString" on MSVC.
- Default template parameters are also handled differently by different compilers, sometimes ignored, sometimes not.
- Only the concrete type is known to the compiler, aliases are ignored, e.g. GetGeneratedTypeName<TCHAR>() typically returns "wchar_t".