Utility to expand different inputs as error message.
More...
|
using | kassert::internal::OStreamLogger = Logger<std::ostream&> |
| Logger writing all output to a std::ostream . This specialization is used to generate the KASSERT error messages.
|
|
using | kassert::internal::RrefOStringstreamLogger = Logger<std::ostringstream&&> |
| Logger writing all output to a rvalue std::ostringstream . This specialization is used to generate the custom error message for THROWING_KASSERT exceptions.
|
|
Utility to expand different inputs as error message.
◆ stringify_value()
Stringify a value using the given assertion logger. If the value cannot be streamed into the logger, print <
?> instead.
- Template Parameters
-
StreamT | The underlying streaming object of the assertion logger. |
ValueT | The type of the value to be stringified. |
- Parameters
-
out | The assertion logger. |
value | The value to be stringified. |
◆ is_streamable_type
Determines whether a value of type ValueT
can be streamed into an output stream of type StreamT
.
- Template Parameters
-
StreamT | An output stream overloading the << operator. |
ValueT | A value type that may or may not be used with StreamT::operator<< . |