3 #include "fly/types/string/concepts.hpp"
4 #include "fly/types/string/detail/format_parameters.hpp"
5 #include "fly/types/string/formatters.hpp"
10 namespace fly::detail {
19 template <
typename OutputIterator, fly::StandardCharacter CharType>
25 using char_type = CharType;
36 template <
typename... Parameters>
54 OutputIterator &
out();
63 const std::size_t m_parameters_size;
67 template <
typename OutputIterator, fly::StandardCharacter CharType>
68 template <
typename... Parameters>
72 m_out(std::move(out)),
73 m_parameters(parameters.m_parameters.data()),
74 m_parameters_size(parameters.m_parameters.size())
79 template <
typename OutputIterator, fly::StandardCharacter CharType>
83 if (index < m_parameters_size)
85 return m_parameters[index];
92 template <
typename OutputIterator, fly::StandardCharacter CharType>
Definition: format_context.hpp:21
FormatParameter arg(std::size_t index) const
Definition: format_context.hpp:80
OutputIterator & out()
Definition: format_context.hpp:93
constexpr BasicFormatContext(OutputIterator out, const BasicFormatParameters< BasicFormatContext, Parameters... > ¶meters) noexcept
Definition: format_context.hpp:69