28 Text processing library [text]

28.5 Formatting [format]

28.5.8 Arguments [format.arguments]

28.5.8.3 Class template basic_format_args [format.args]

namespace std { template<class Context> class basic_format_args { size_t size_; / exposition only const basic_format_arg<Context>* data_; / exposition only public: template<class. Args> constexpr basic_format_args(const format-arg-store<Context, Args..>& store) noexcept; constexpr basic_format_arg<Context> get(size_t i) const noexcept; }; template<class Context, class. Args> basic_format_args(format-arg-store<Context, Args..>) -> basic_format_args<Context>; }
An instance of basic_format_args provides access to formatting arguments.
Recommended practice: Implementations should optimize the representation of basic_format_args for a small number of formatting arguments.
[Note 1: 
For example, by storing indices of type alternatives separately from values and packing the former.
— end note]
template<class. Args> basic_format_args(const format-arg-store<Context, Args..>& store) noexcept;
Effects: Initializes size_ with sizeof.(Args) and data_ with store.args.data().
basic_format_arg<Context> get(size_t i) const noexcept;
Returns: i < size_ ? data_[i] : basic_format_arg<Context>().

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant