3#include <fmt/ostream.h>
6#include <boost/beast/http/message_fwd.hpp>
15struct fmt::formatter<
std::atomic<T>> : fmt::formatter<T> {
16 template <
typename FormatContext>
17 auto format(
const std::atomic<T>& atomic_val, FormatContext& ctx)
const {
18 return fmt::formatter<T>::format(atomic_val.load(std::memory_order_relaxed), ctx);
24struct fmt::formatter<
taraxa::blk_hash_t> : fmt::formatter<std::string> {
25 template <
typename FormatContext>
27 return fmt::format_to(ctx.out(),
"{}", val.
abridged());
33struct fmt::formatter<
taraxa::addr_t> : fmt::formatter<std::string> {
34 template <
typename FormatContext>
36 return fmt::format_to(ctx.out(),
"{}", val.
abridged());
41template <
class Body,
class Fields>
42struct fmt::formatter<
boost::beast::http::request<Body, Fields>> : fmt::ostream_formatter {};
std::string abridged() const
Definition FixedHash.h:167
std::hash for asio::adress
Definition FixedHash.h:483