printable Concept
Concept satisfied when a type can be appended to the message of a check result via operator<<. More...
Definition
concept micro_os_plus::micro_test_plus::extension::printable = requires (detail::expression_formatter& formatter,
const T& value) { formatter << value; }
Description
Concept satisfied when a type can be appended to the message of a check result via operator<<.
- Template Parameters
-
T The type to be checked.
The printable concept is satisfied when a value of type T can be written to an expression_formatter, so the message of a check accepts the same values as the operands of the comparators: the strings, the characters, the arithmetic types, std::nullptr_t, the pointers, the containers, the scoped enumerations, the pairs, the tuples, the optionals, the value wrappers, and the application types with an operator<< for the formatter, found by argument-dependent lookup. It constrains the operator<< overload of check_result, which also accepts the callable objects that return a printable value, called only if the check fails; an application helper that forwards a value to the message uses it for the same constraint.
The formatter is only declared here; the concept is checked where it is used, after expression-formatter.h was included.
Definition at line 433 of file extension.h.
Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.