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