#include <ozo/io/size_of.h>
ozo::size_of
implementation functor
This template is used to implement object binary representation size calculation including all the meta-information is used for the PostgreSQL binary protocol. By default it provides static_assert
failure - which means that there is no know algorithm to calculate size. There are default specializations for different common types and concepts, incluiding #BuiltIn, Array, Composite, #Nullable.
T | — type to examine. |
<anonymous> | — SFINAE overloading rule. |
ozo::send_impl
and ozo::recv_impl
.This is how it can be implemented for the static size type (exposition only):