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

Checks whether T can be streamed. More...

#include <util.hpp>

Concept definition

template<typename C>
concept CppSpec::Util::is_streamable = requires(std::ostream& os, const C& obj) {
{ os << obj } -> std::same_as<std::ostream&>;
}
Checks whether T can be streamed.
Definition util.hpp:81

Detailed Description

Checks whether T can be streamed.

A streamable type is defined by having the operator<< defined in scope.

Template Parameters
Ca type to check