Update changelog and docs

This commit is contained in:
Victor Zverovich committed 2022-06-25 08:33:57 -07:00
1 parent 2d931b1497
commit e6d478f8e8
3 files changed
+71 -17

No files matched your search

+10
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};