Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::Streamable Concept Reference

Concept to check if T can be streamed to an ostream (i.e., supports '<<' operator). More...

#include <Concepts.h>

Concept definition

template<typename T>
concept Raven::Streamable = requires(std::ostream& os, T value) {
{ os << value } -> std::same_as<std::ostream&>;
}
Concept to check if T can be streamed to an ostream (i.e., supports '<<' operator).
Definition Concepts.h:101

Detailed Description

Concept to check if T can be streamed to an ostream (i.e., supports '<<' operator).

This concept checks if the type T supports the streaming operator << to an ostream.

Template Parameters
TThe type to check.