Create and return a Streamed wrapper for the specified object when t_STREAMABLE2 is already formattable (emits a deprecation warning).

Synopsis

Declared in <bslfmt_streamed.h>

template<class t_STREAMABLE2>
Streamed<t_STREAMABLE2>
streamed(t_STREAMABLE2 const& object)
requires (bsl::formattable<t_STREAMABLE2, char>);
Note

This function is a hidden friend of Streamed, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

a Streamed wrapper referring to object

Parameters

Name

Description

object

Streamable object to wrap for formatting via operator<<.

Created with MrDocs