Visual Computing Library
Loading...
Searching...
No Matches
vcl::OutputStreamable Concept Reference

Concept that is evaluated true if T is an output streamable type. More...

#include <vclib/concepts/serialization.h>

Concept definition

template<typename T>
concept vcl::OutputStreamable = requires (std::ostream& os, T&& value) {
{ os << value } -> std::convertible_to<std::ostream&>;
}
Concept that is evaluated true if T is an output streamable type.
Definition serialization.h:42

Detailed Description

Concept that is evaluated true if T is an output streamable type.

A type T is output streamable if it can be written to an output stream, i.e., it has an overloaded operator<<.