|
pstore2
|
This template class enables us to provide the "writen()" interface on all serialization classes without forcing every one to reimplement identical boilerplate code. More...
#include <types.hpp>
Static Public Member Functions | |
| template<typename Archive , typename SpanType > | |
| static auto | writen (Archive &&archive, SpanType span) -> archive_result_type< Archive > |
This template class enables us to provide the "writen()" interface on all serialization classes without forcing every one to reimplement identical boilerplate code.
If the target class for the span's element type – serializer<Span::element_type> – implements a writen() method then it will be called otherwise we call back to a loop implemented here.
1.8.13