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// SPDX-FileCopyrightText: Copyright (C) 2023 Tobias Hienzsch
3
4#ifndef TETL_FORMAT_MAKE_FORMAT_ARGS_HPP
5#define TETL_FORMAT_MAKE_FORMAT_ARGS_HPP
6
7#include <etl/_format/basic_format_context.hpp>
8#include <etl/_format/format_arg_store.hpp>
9#include <etl/_utility/forward.hpp>
10
11namespace etl {
12
13template <typename Context = etl::format_context, typename... Args>
14auto make_format_args(Args&&... args) -> detail::format_arg_store<Context, Args...>
15{
16 return {etl::forward<Args>(args)...};
17}
18
19template <typename... Args>
20auto make_wformat_args(Args&&... args) -> detail::format_arg_store<wformat_context, Args...>
21{
22 return {etl::forward<Args>(args)...};
23}
24
25} // namespace etl
26
27#endif // TETL_FORMAT_MAKE_FORMAT_ARGS_HPP
Definition adjacent_find.hpp:9
auto make_format_args(Args &&... args) -> detail::format_arg_store< Context, Args... >
Definition make_format_args.hpp:14
auto make_wformat_args(Args &&... args) -> detail::format_arg_store< wformat_context, Args... >
Definition make_format_args.hpp:20