|
| template<typename... ArgsT> |
| detail::FormatArgStore< char, detail::RemoveCvref< ArgsT >... > | make_format_args (const ArgsT &... args) |
| | Public API 更多...
|
| |
| template<typename... ArgsT> |
| FormatToNResult< char * > | format_to_n (char *out, size_t n, format_string< ArgsT... > fmt, const ArgsT &... args) |
| | Formats args into out, writing at most n characters. 更多...
|
| |
| template<size_t NumT, typename... ArgsT> |
| FormatToResult | format_to (char(&out)[NumT], format_string< ArgsT... > fmt, const ArgsT &... args) |
| | Formats args into a fixed-size character array; equivalent to format_to_n. 更多...
|
| |
| template<typename OutputItT , typename... ArgsT, std::enable_if_t< detail::kIsOutputIterator< detail::RemoveCvref< OutputItT >> &&!std::is_array_v< std::remove_reference_t< OutputItT >>, int > = 0> |
| detail::RemoveCvref< OutputItT > | format_to (OutputItT &&out, format_string< ArgsT... > fmt, const ArgsT &... args) |
| | Formats args through an output iterator. 更多...
|
| |
| template<typename... ArgsT> |
| std::string | format (format_string< ArgsT... > fmt, const ArgsT &... args) |
| | Formats args into a newly allocated std::string. 更多...
|
| |
Minimal allocation-free {} placeholder formatter.
Details
template<typename OutputItT , typename... ArgsT, std::enable_if_t< detail::kIsOutputIterator< detail::RemoveCvref< OutputItT >> &&!std::is_array_v< std::remove_reference_t< OutputItT >>, int > = 0>
Formats args through an output iterator.
Writes each character via *out++ = c. The iterator must satisfy the OutputIterator concept; arrays are explicitly excluded so the fixed-array overload wins overload resolution.
- 模板参数
-
| OutputItT | Output iterator type. |
| ArgsT | Argument types. |
- 参数
-
| out | Destination iterator. |
| fmt | Format string. |
| args | Arguments to substitute. |
- 返回
- Iterator one past the last written character.