Takes a streamable argument and returns an object that can print it with '%s'.
Synopsis
Declared in <absl/strings/str_format.h>
template<typename T>
str_format_internal::StreamedWrapper<T>
FormatStreamed(T const& v);
Description
Allows printing of types that have an operator<< but no intrinsic type support within StrFormat() itself.
Example:
absl::StrFormat("%s", absl::FormatStreamed(obj));
Return Value
A wrapper that formats v using its stream operator.
Parameters
Name |
Description |
v |
The streamable value to wrap. |
Created with MrDocs