di 0.1.0
Loading...
Searching...
No Matches
to_string.h
Go to the documentation of this file.
1#pragma once
2
5#include "di/format/present.h"
6
7namespace di::format {
8namespace detail {
9 struct ToStringFunction {
10 constexpr auto operator()(concepts::Formattable auto&& value) const { return *present(u8"{}"_sv, value); }
11 };
12}
13
14constexpr inline auto to_string = detail::ToStringFunction {};
15}
16
17namespace di {
19}
Definition bounded_format_context.h:7
constexpr auto present
Definition present.h:7
constexpr auto to_string
Definition to_string.h:14
__UINT8_TYPE__ u8
Definition integers.h:9
Definition any_storable.h:9