Skip to main content

free_printable Concept

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

Definition​

template <class T>
concept micro_os_plus::micro_test_plus::detail::free_printable = requires (expression_formatter& formatter, const T& value) {
            operator<< (formatter, value);
          }

Description​

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

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
T

The type to check.

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

  template<class T>
  concept free_printable = requires (expression_formatter& formatter, const T& value) {
  operator<< (formatter, value);
  }

Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.