Templa 0.0.1-alpha
C++ Metaprogramming Utilities
Loading...
Searching...
No Matches
templa::concepts::Streamable Concept Reference

Concept to check if a type can be streamed to an std::ostream. More...

#include <concepts.hpp>

Concept definition

template<typename T>
concept templa::concepts::Streamable = requires(std::ostream &os, T t) {
{ os << t };
}
Concept to check if a type can be streamed to an std::ostream.
Definition concepts.hpp:156

Detailed Description

Concept to check if a type can be streamed to an std::ostream.

Requires the expression (os << t) to be valid.

Template Parameters
TType to check.