Skip to main content

printable Concept

C++20 concept satisfied when a type can be appended to the deferred reporter's output via operator<<. More...

Definition

template <class T>
concept micro_os_plus::micro_test_plus::type_traits::printable = std::is_arithmetic_v<T>
                        or std::is_convertible_v<T, std::string_view>

Description

C++20 concept satisfied when a type can be appended to the deferred reporter's output via operator<<.

Template Parameters
T

The type to be checked.

The printable concept is satisfied when T is an arithmetic type or is implicitly convertible to std::string_view. It constrains the operator<< overload of deferred_reporter_base, ensuring that only types that can be meaningfully appended to the output message are accepted.

Definition at line 486 of file type-traits.h.

  template<class T>
  concept printable = std::is_arithmetic_v<T>
  or std::is_convertible_v<T, std::string_view>

Generated via doxygen2docusaurus 2.2.0 by Doxygen 1.17.0.