C++Spec 1.1.0
BDD testing for C++
Loading...
Searching...
No Matches
CppSpec::Util::prints_elements_through_pretty Concept Reference

Checks whether T is a container, pair or tuple that Pretty prints element by element, because an element prints differently through Pretty than through operator<<. More...

#include <pretty_matchers.hpp>

Concept definition

template<typename T>
(std::is_class_v<T> || std::is_array_v<T>) && !is_string_like<T> && !is_optional_v<std::remove_cv_t<T>> &&
prints_through_pretty<std::remove_cv_t<T>>::value
Checks whether T is text that CppSpec::string_view_of() can view: a C string, or a type that converts...
Definition util.hpp:201
Checks whether T is a container, pair or tuple that Pretty prints element by element,...
Definition pretty_matchers.hpp:126
Whether T prints differently through Pretty than through operator<<, so a container holding it is pri...
Definition pretty_matchers.hpp:97
constexpr bool is_optional_v
Checks whether T is a std::optional.
Definition util.hpp:189

Detailed Description

Checks whether T is a container, pair or tuple that Pretty prints element by element, because an element prints differently through Pretty than through operator<<.

Template Parameters
Ta type to check