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

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

#include <vclib/concepts/serialization.h>

Concept definition

template<typename T>
concept vcl::InputStreamable = requires (std::istream& is, T&& value) {
{ is >> value } -> std::convertible_to<std::istream&>;
}
Concept that is evaluated true if T is an input streamable type.
Definition serialization.h:55

Detailed Description

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

A type T is input streamable if it can be read from an input stream, i.e., it has an overloaded operator>>.