tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
make_format_args.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_FORMAT_MAKE_FORMAT_ARGS_HPP
4#define TETL_FORMAT_MAKE_FORMAT_ARGS_HPP
5
9
10namespace etl {
11
12template <typename Context = etl::format_context, typename... Args>
13auto make_format_args(Args&&... args) -> detail::format_arg_store<Context, Args...>
14{
15 return {etl::forward<Args>(args)...};
16}
17
18template <typename... Args>
19auto make_wformat_args(Args&&... args) -> detail::format_arg_store<wformat_context, Args...>
20{
21 return {etl::forward<Args>(args)...};
22}
23
24} // namespace etl
25
26#endif // TETL_FORMAT_MAKE_FORMAT_ARGS_HPP
Definition adjacent_find.hpp:8
basic_format_context< back_insert_iterator< detail::fmt_buffer< wchar_t > >, wchar_t > wformat_context
Definition basic_format_context.hpp:56
auto make_format_args(Args &&... args) -> detail::format_arg_store< Context, Args... >
Definition make_format_args.hpp:13
auto make_wformat_args(Args &&... args) -> detail::format_arg_store< wformat_context, Args... >
Definition make_format_args.hpp:19
constexpr auto forward(remove_reference_t< T > &param) noexcept -> T &&
Forwards lvalues as either lvalues or as rvalues, depending on T. When t is a forwarding reference (a...
Definition forward.hpp:18
basic_format_context< back_insert_iterator< detail::fmt_buffer< char > >, char > format_context
Provides access to formatting state consisting of the formatting arguments and the output iterator.
Definition basic_format_context.hpp:55