micro-test-plus 6.0.1
µTest++ Testing Framework
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::detail::free_printable Concept Reference

Concept satisfied by the types that have a free operator<< for the formatter. More...

#include <expression-formatter.h>

Concept definition

template<class T>
concept free_printable = requires (expression_formatter& formatter, const T& value) {
operator<< (formatter, value);
}
Formats values and expressions into an owned string buffer.
Concept satisfied by the types that have a free operator<< for the formatter.
Struct template representing a generic value, accessible via a getter.
Definition deprecated.h:629

Detailed Description

Satisfied when the call operator<< (formatter, value) is valid, which looks for free functions only, by argument-dependent lookup, so it does not see the member functions of the formatter. The framework defines no free operator<< for the formatter; the ones found are those of the application. They take precedence over the templates of the formatter for the scoped enumerations and for the types with begin() and end(), which would be written by the formatter if the application did not define its own function, so that the application controls the text of its type.

Template Parameters
TThe type to check.

Definition at line 1767 of file expression-formatter.h.