15 template <
typename Stream>
18 using char_t =
typename stream_t::char_type;
27 template <
typename... Args>
28 explicit deserializer(Args&&... args) : stream(std::forward<Args>(args)...) {}
37 if constexpr (std::is_arithmetic_v<T>) {
38 stream.read(reinterpret_cast<char_t*>(&value),
sizeof(T));
A deserializer for ETL expressions.
Definition: deserializer.hpp:16
deserializer & operator>>(T &value)
Reads a value of the given type from the stream.
Definition: deserializer.hpp:36
Stream stream_t
The type of stream to use.
Definition: deserializer.hpp:17
Root namespace for the ETL library.
Definition: adapter.hpp:15
void deserialize(deserializer< Stream > &is, dyn_matrix_impl< T, SO, D > &matrix)
Deserialize the given matrix using the given serializer.
Definition: dyn.hpp:704
stream_t stream
The stream.
Definition: deserializer.hpp:20
deserializer(Args &&... args)
Construct the deserializer by forwarding the arguments to the stream.
Definition: deserializer.hpp:28
typename stream_t::char_type char_t
The char type of the stream.
Definition: deserializer.hpp:18