di 0.1.0
Loading...
Searching...
No Matches
present_encoded_context.h
Go to the documentation of this file.
1#pragma once
2
10
11namespace di::format {
12namespace detail {
13 template<concepts::Encoding Enc>
14 struct PresentEncodedContextFunction {
15 template<concepts::Formattable... Args>
16 constexpr auto operator()(format::FormatStringImpl<Enc, Args...> format, concepts::FormatContext auto& context,
17 Args&&... args) const {
18 return vpresent_encoded_context<Enc>(format, format::make_format_args<decltype(context)>(args...), context);
19 }
20 };
21}
22
23template<concepts::Encoding Enc>
24constexpr inline auto present_encoded_context = detail::PresentEncodedContextFunction<Enc> {};
25}
26
27namespace di {
29}
Definition bounded_format_context.h:7
constexpr auto make_format_args(Types &&... values)
Definition make_format_args.h:9
constexpr auto vpresent_encoded_context
Definition vpresent_encoded_context.h:61
detail::FormatStringImpl< Enc, meta::TypeIdentity< Args >... > FormatStringImpl
Definition format_string_impl.h:70
constexpr auto present_encoded_context
Definition present_encoded_context.h:24
Definition any_storable.h:9