SeqAn3 3.4.0-rc.3
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
seqan3::optional_printer< std::optional< T > > Struct Template Reference

Printer for formatted output of a std::optional. More...

#include <seqan3/core/debug_stream/optional.hpp>

Public Member Functions

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.
 

Detailed Description

template<typename T>
struct seqan3::optional_printer< std::optional< T > >

Printer for formatted output of a std::optional.

Template Parameters
TThe value type of the std::optional.

Member Function Documentation

◆ operator()()

template<typename T >
constexpr void seqan3::optional_printer< std::optional< T > >::operator() ( stream_t stream,
arg_t &&  arg 
) const
inlineconstexpr

Print the optional to the stream by printing its value or nothing if valueless.

Template Parameters
stream_tThe type of the stream.
arg_tThe type of the argument.
Parameters
[in,out]streamThe stream to print to.
[in]argThe optional to print.

The documentation for this struct was generated from the following file:
Hide me