siplasplas
A library for C++ reflection and introspection
|
Implements read from an standard input stream. More...
#include <siplasplas/typeerasure/features/iostream.hpp>
Static Public Member Functions | |
template<typename T > | |
static std::istream & | apply (std::istream &is, T &value) noexcept(cpp::concepts::IStreamable< T >::no_except) |
Implements read from input stream feature. More... | |
Implements read from an standard input stream.
|
inlinestaticnoexcept |
Implements read from input stream feature.
IStreamable feature implements read from an input stream in a type agnostic way. If the type is not readable from an standard input stream (See cpp::concepts::IStreamable), it throws a std::runtime_error exception. Else invokes operator<<(std::istream&, T&)
.
os | Reference to the input stream to read from. |
value | lvalue reference to the object which the read value will be assigned to. |