siplasplas
A library for C++ reflection and introspection
|
Implements write to an standard output stream. More...
#include <siplasplas/typeerasure/features/iostream.hpp>
Static Public Member Functions | |
template<typename T > | |
static std::ostream & | apply (std::ostream &os, const T &value) noexcept(cpp::concepts::OStreamable< T >::no_except) |
Implements write to output stream feature. More... | |
Implements write to an standard output stream.
|
inlinestaticnoexcept |
Implements write to output stream feature.
OStreamable feature implements write to an output stream in a type agnostic way. If the type is not writable to an standard output stream (See cpp::concepts::OStreamable), it throws a std::runtime_error exception. Else invokes operator<<(std::ostream&, const T& value)
.
os | Reference to the output stream to write to. |
value | Value to write to the output stream. |