format overloads
Synopses
Declared in <folly/Format.h>
Creates a formatter object binding fmt to arg.
Formatter<false, A...>
format(
StringPiece fmt,
A&&... arg);
Create a formatter object.
template<class... Args>
[[deprecated("Use fmt::format instead of folly::format for better performance, build times and compatibility with std::format")]]
Formatter<false, Args...>
format(
StringPiece fmt,
Args&&... args);
Appends formatted output for fmt and args to out.
void
format(
Str* out,
StringPiece fmt,
A&&... args)
requires IsSomeString<Str>::value;
Append formatted output to a string.
template<
class Str,
class... Args>
void
format(
Str* out,
StringPiece fmt,
Args&&... args)
requires IsSomeString<Str>::value;
Return Value
-
A formatter binding
fmttoargfor deferred output. -
A formatter binding
fmttoargsfor deferred output.
Parameters
Name |
Description |
fmt |
The format string. |
arg |
The values to substitute into the format string. |
args |
The values to substitute into the format string. |
out |
The string to append formatted output to. |
Created with MrDocs