Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
fmt::formatter< Engine::Id > Struct Reference

Specialization of fmt::formatter for Engine::Id, allowing it to be formatted using the fmt library. More...

#include <Id.hpp>

Inheritance diagram for fmt::formatter< Engine::Id >:

Public Member Functions

template<typename FormatContext>
auto format (const Engine::Id &id, FormatContext &ctx) const
 Format an Engine::Id using the underlying entt::id_type formatter.

Detailed Description

Specialization of fmt::formatter for Engine::Id, allowing it to be formatted using the fmt library.

Member Function Documentation

◆ format()

template<typename FormatContext>
auto fmt::formatter< Engine::Id >::format ( const Engine::Id & id,
FormatContext & ctx ) const
inline

Format an Engine::Id using the underlying entt::id_type formatter.

Template Parameters
FormatContextThe type of the format context provided by fmt during formatting.
Parameters
idThe Engine::Id instance to format.
ctxThe format context provided by fmt.
Returns
The result of formatting the underlying entt::id_type value of the Engine::Id instance using the appropriate formatter for entt::id_type.
Todo
Put the implementation in the inl file if possible

The documentation for this struct was generated from the following file: