Printer for formatted output of a std::optional.
More...
#include <seqan3/core/debug_stream/optional.hpp>
|
template<typename stream_t , typename arg_t > |
constexpr void | operator() (stream_t &stream, arg_t &&arg) const |
| Print the optional to the stream by printing its value or nothing if valueless.
|
|
template<typename T>
struct seqan3::optional_printer< std::optional< T > >
Printer for formatted output of a std::optional.
- Template Parameters
-
◆ operator()()
template<typename T >
template<typename stream_t , typename arg_t >
Print the optional to the stream by printing its value or nothing if valueless.
- Template Parameters
-
stream_t | The type of the stream. |
arg_t | The type of the argument. |
- Parameters
-
[in,out] | stream | The stream to print to. |
[in] | arg | The optional to print. |
The documentation for this struct was generated from the following file: