Iros
Loading...
Searching...
No Matches
present_encoded.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/formattable.h
"
6
#include "
di/format/format_string_impl.h
"
7
#include "
di/format/make_format_args.h
"
8
#include "
di/format/vpresent_encoded.h
"
9
10
namespace
di::format
{
11
namespace
detail
{
12
template
<concepts::Encoding Enc>
13
struct
PresentEncodedFunction
{
14
template
<
concepts::Formattable
... Args>
15
constexpr
auto
operator()
(
format::FormatStringImpl<Enc, Args...>
format
, Args&&... args)
const
{
16
return
vpresent_encoded<Enc>
(
format
,
format::make_format_args
<
FormatContext<Enc>
>(args...));
17
}
18
};
19
}
20
21
template
<concepts::Encoding Enc>
22
constexpr
inline
auto
present_encoded
=
detail::PresentEncodedFunction<Enc>
{};
23
}
di::format::FormatContext
Definition
format_context.h:8
di::concepts::Formattable
Definition
formattable.h:9
encoding.h
format_string_impl.h
formattable.h
make_format_args.h
di::format::detail
Definition
base.h:16
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
constexpr auto vpresent_encoded
Definition
vpresent_encoded.h:27
di::format::FormatStringImpl
detail::FormatStringImpl< Enc, meta::TypeIdentity< Args >... > FormatStringImpl
Definition
format_string_impl.h:70
di::format::present_encoded
constexpr auto present_encoded
Definition
present_encoded.h:22
string_impl.h
di::format::detail::PresentEncodedFunction
Definition
present_encoded.h:13
di::format::detail::PresentEncodedFunction::operator()
constexpr auto operator()(format::FormatStringImpl< Enc, Args... > format, Args &&... args) const
Definition
present_encoded.h:15
vpresent_encoded.h
libs
di
include
di
format
present_encoded.h
Generated by
1.13.0