A struct that provides a debug stream printer for a specific value type.
This struct provides operator() overloads for printing values of type int8_t, uint8_t, and seqan3::fmtflags2 to a debug stream. The operator() overloads handle the formatting of the values based on the fmtflags2 settings of the debug stream.
- Template Parameters
-
| value_t | The type of the value to be printed. |
template<typename value_t>
template<typename char_t>
Prints an int8_t value to the debug stream.
- Template Parameters
-
| char_t | The character type of the debug stream. |
- Parameters
-
| stream | The debug stream to print to. |
| v | The int8_t value to be printed. |
This function prints the int8_t value to the debug stream, taking into account the fmtflags2 settings of the stream. If the fmtflags2::small_int_as_number flag is set, the value is printed as an int, otherwise it is printed as is.
template<typename value_t>
template<typename char_t>
Prints a uint8_t value to the debug stream.
- Template Parameters
-
| char_t | The character type of the debug stream. |
- Parameters
-
| stream | The debug stream to print to. |
| v | The uint8_t value to be printed. |
This function prints the uint8_t value to the debug stream, taking into account the fmtflags2 settings of the stream. If the fmtflags2::small_int_as_number flag is set, the value is printed as an unsigned int, otherwise it is printed as is.