4#ifndef TETL_FORMAT_BASIC_FORMAT_ARG_HPP
5#define TETL_FORMAT_BASIC_FORMAT_ARG_HPP
7#include <etl/_cstddef/nullptr_t.hpp>
8#include <etl/_cstddef/size_t.hpp>
9#include <etl/_format/basic_format_parse_context.hpp>
10#include <etl/_string/basic_inplace_string.hpp>
11#include <etl/_string_view/basic_string_view.hpp>
12#include <etl/_utility/forward.hpp>
13#include <etl/_variant/monostate.hpp>
14#include <etl/_variant/variant.hpp>
17template <
typename Context>
18struct basic_format_arg;
21template <
typename Context,
typename T>
22[[nodiscard]]
constexpr auto make_arg(T&& value) -> basic_format_arg<Context>;
25template <
typename Context>
26struct basic_format_arg {
28 using char_type =
typename Context::char_type;
30 template <
typename ContextType,
typename T>
31 friend constexpr auto detail::make_arg(T&& value) -> basic_format_arg<ContextType>;
38 friend struct basic_format_arg<Context>;
41 explicit handle(T&& val)
noexcept;
61 template <
typename Traits>
64 template <
etl::size_t Capacity,
typename Traits>
78 unsigned long long int,
91template <
typename Context,
typename T>
92[[nodiscard]]
constexpr auto make_arg(T&& value) -> basic_format_arg<Context>
94 return {
etl::forward<T>(value)};
Definition adjacent_find.hpp:9
Definition basic_format_parse_context.hpp:14
basic_inplace_string class with fixed size capacity.
Definition basic_inplace_string.hpp:42
The class template basic_string_view describes an object that can refer to a constant contiguous sequ...
Definition basic_string_view.hpp:35
Unit type intended for use as a well-behaved empty alternative in etl::variant. In particular,...
Definition monostate.hpp:17
Definition variant.hpp:99