di
0.1.0
Loading...
Searching...
No Matches
present_encoded_context.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/container/string/encoding.h
"
4
#include "
di/container/string/string_impl.h
"
5
#include "
di/format/concepts/format_context.h
"
6
#include "
di/format/concepts/formattable.h
"
7
#include "
di/format/format_string_impl.h
"
8
#include "
di/format/make_format_args.h
"
9
#include "
di/format/vpresent_encoded_context.h
"
10
11
namespace
di::format
{
12
namespace
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
23
template
<concepts::Encoding Enc>
24
constexpr
inline
auto
present_encoded_context
= detail::PresentEncodedContextFunction<Enc> {};
25
}
26
27
namespace
di
{
28
using
format::present_encoded_context
;
29
}
format_context.h
encoding.h
format_string_impl.h
formattable.h
make_format_args.h
di::format
Definition
bounded_format_context.h:7
di::format::make_format_args
constexpr auto make_format_args(Types &&... values)
Definition
make_format_args.h:9
di::format::vpresent_encoded_context
constexpr auto vpresent_encoded_context
Definition
vpresent_encoded_context.h:61
di::format::FormatStringImpl
detail::FormatStringImpl< Enc, meta::TypeIdentity< Args >... > FormatStringImpl
Definition
format_string_impl.h:70
di::format::present_encoded_context
constexpr auto present_encoded_context
Definition
present_encoded_context.h:24
di
Definition
any_storable.h:9
string_impl.h
vpresent_encoded_context.h
di
format
present_encoded_context.h
Generated by
1.13.2