Convert types to string.
More...
#include <string>
#include "ConstexprXXH3.h"
#include "CoreMinimal.h"
#include "UnrealCtre.h"
#include "Mcro/TextMacros.h"
#include "Mcro/Platform.h"
Go to the source code of this file.
|
template<typename T > |
consteval std::basic_string_view< TCHAR > | GetCompileTimeTypeName () |
| Get a string view of the compile time typename.
|
|
template<typename T > |
consteval uint64 | GetCompileTimeTypeHash () |
|
template<typename T > |
FName | Mcro::TypeName::TTypeFName () |
| Same as TTypeName converted to FName. This is not cached and a new FName is created every time this is called.
|
|
template<typename T > |
FString | Mcro::TypeName::TTypeString () |
| Same as TTypeName converted to FString. This is not cached and a new FString is created every time this is called.
|
|
Convert types to string.
- Copyright
- This Source Code is subject to the terms of the Mozilla Public License, v2.0. If a copy of the MPL was not distributed with this file You can obtain one at https://mozilla.org/MPL/2.0/
- Author
- David Mórász
- Date
- 2025
Definition in file TypeName.h.
◆ MCRO_EXPLICIT_TYPE_EXTRACTION
#define MCRO_EXPLICIT_TYPE_EXTRACTION defined(MCRO_EXPLICIT_PRETTY_FUNCTION) && defined(MCRO_EXPLICIT_TYPE_EXTRACT_REGEX) |
◆ GetCompileTimeTypeHash()
template<typename T >
uint64 GetCompileTimeTypeHash |
( |
| ) |
|
|
consteval |
◆ GetCompileTimeTypeName()
template<typename T >
std::basic_string_view< TCHAR > GetCompileTimeTypeName |
( |
| ) |
|
|
consteval |
Get a string view of the compile time typename.
- Note
- Using std::(w)string here instead of FString or FStringView for consteval compatibility
- Template Parameters
-
- Returns
- string view of the name of the type
Definition at line 57 of file TypeName.h.