|
Engine²
Open-source game engine written in C++.
|
Specialization of fmt::formatter for Engine::StringId, allowing it to be formatted using the fmt library. This formatter formats the StringId by extracting the original string representation from the underlying entt::hashed_string and formatting it as a std::string_view, which provides a human-readable representation of the StringId for debugging and logging purposes. More...
#include <Id.hpp>
Public Member Functions | |
| template<typename FormatContext> | |
| auto | format (const Engine::StringId &id, FormatContext &ctx) const |
| Format an Engine::StringId by extracting its original string representation and formatting it as a std::string_view. | |
Specialization of fmt::formatter for Engine::StringId, allowing it to be formatted using the fmt library. This formatter formats the StringId by extracting the original string representation from the underlying entt::hashed_string and formatting it as a std::string_view, which provides a human-readable representation of the StringId for debugging and logging purposes.
|
inline |
Format an Engine::StringId by extracting its original string representation and formatting it as a std::string_view.
| FormatContext | The type of the format context provided by fmt during formatting. |
| id | The Engine::StringId instance to format. |
| ctx | The format context provided by fmt. |