pstore2
Static Public Member Functions | List of all members
pstore::serialize::details::writen_helper Struct Reference

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 >
 

Detailed Description

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.


The documentation for this struct was generated from the following file: