tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
vformat_to.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_FORMAT_VFORMAT_TO_HPP
4#define TETL_FORMAT_VFORMAT_TO_HPP
5
11
12namespace etl {
13
14template <typename OutputIt>
15auto vformat_to(OutputIt out, string_view fmt, format_args args) -> OutputIt
16{
17 auto buffer = etl::detail::fmt_buffer<char>{out};
18 auto it = etl::back_inserter(buffer);
19 etl::ignore_unused(fmt, args, it);
20 return out;
21}
22
23} // namespace etl
24
25#endif // TETL_FORMAT_VFORMAT_TO_HPP
basic_string_view< char, etl::char_traits< char > > string_view
Typedef for common character type char
Definition basic_string_view.hpp:704
Definition adjacent_find.hpp:8
auto vformat_to(OutputIt out, string_view fmt, format_args args) -> OutputIt
Definition vformat_to.hpp:15
basic_format_args< format_context > format_args
Definition basic_format_args.hpp:36
constexpr auto ignore_unused(Types &&...) -> void
Explicitly ignore arguments or variables.
Definition ignore_unused.hpp:17
constexpr auto back_inserter(Container &container) -> back_insert_iterator< Container >
back_inserter is a convenience function template that constructs a back_insert_iterator for the conta...
Definition back_insert_iterator.hpp:76