Iros
 
Loading...
Searching...
No Matches
format_args_storage.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace di::format {
7template<size_t count, concepts::FormatArg Arg>
8class FormatArgsStorage : public FormatArgs<Arg> {
9public:
10 using FormatArgs<Arg>::operator[];
11
12 template<concepts::SameAs<Arg>... Args>
13 requires(sizeof...(Args) == count)
14 constexpr FormatArgsStorage(Args&&... args) : FormatArgs<Arg>({}), m_storage { util::forward<Args>(args)... } {
15 this->set_args(m_storage.span());
16 }
17
18private:
19 Array<Arg, count> m_storage;
20};
21}
constexpr FormatArgsStorage(Args &&... args)
Definition format_args_storage.h:14
constexpr void set_args(Span< Arg > args)
Definition format_args.h:16
constexpr FormatArgs(Span< Arg > args)
Definition format_args.h:10
Definition bounded_format_context.h:7
constexpr auto count
Definition count.h:37