Update changelog and docs

This commit is contained in:
Victor Zverovich
2022-06-25 08:33:57 -07:00
parent 2d931b1497
commit e6d478f8e8
3 changed files with 71 additions and 17 deletions

View File

@@ -151,6 +151,16 @@ struct formatter<detail::streamed_view<T>> : ostream_formatter {
}
};
/**
\rst
Returns a view that formats `value` via an ostream ``operator<<``.
**Example**::
fmt::print("Current thread id: {}\n",
fmt::streamed(std::this_thread::get_id()));
\endrst
*/
template <typename T>
auto streamed(const T& value) -> detail::streamed_view<T> {
return {value};