AsmGrader
0.0.0
Loading...
Searching...
No Matches
generic_impl.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
asmgrader/common/formatters/debug.hpp
>
4
5
#include <fmt/base.h>
6
7
namespace
asmgrader::detail
{
8
9
template
<
typename
T,
typename
Enable =
void
>
10
struct
FormatterImpl
;
11
12
}
// namespace asmgrader::detail
13
15
template
<
typename
T>
16
requires
requires
{
::asmgrader::detail::FormatterImpl<T>
(); }
17
struct
fmt::formatter<T> :
::asmgrader::DebugFormatter
18
{
19
constexpr
auto
format
(
const
T& from, fmt::format_context& ctx)
const
{
20
return ::asmgrader::detail::FormatterImpl<T>::format(from, ctx);
21
}
22
};
debug.hpp
asmgrader::detail
Definition
registers_state.hpp:57
asmgrader::DebugFormatter
Definition
debug.hpp:9
asmgrader::detail::FormatterImpl
Definition
generic_impl.hpp:10
fmt::formatter< T >::format
constexpr auto format(const T &from, fmt::format_context &ctx) const
Definition
generic_impl.hpp:19
include
asmgrader
common
formatters
generic_impl.hpp
Generated by
1.12.0