Files
scylladb/utils/to_string.hh
Avi Kivity 0ae22a09d4 LICENSE: Update to version 1.1
Updated terms of non-commercial use (must be a never-customer).
2026-04-12 19:46:33 +03:00

25 lines
735 B
C++

/*
* Copyright (C) 2015-present ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
*/
#pragma once
#include <fmt/core.h>
#include <compare>
template <> struct fmt::formatter<std::strong_ordering> : fmt::formatter<string_view> {
auto format(std::strong_ordering, fmt::format_context& ctx) const -> decltype(ctx.out());
};
template <> struct fmt::formatter<std::weak_ordering> : fmt::formatter<string_view> {
auto format(std::weak_ordering, fmt::format_context& ctx) const -> decltype(ctx.out());
};
template <> struct fmt::formatter<std::partial_ordering> : fmt::formatter<string_view> {
auto format(std::partial_ordering, fmt::format_context& ctx) const -> decltype(ctx.out());
};