piranha  0.10
Public Member Functions | List of all members
piranha::msgpack_pack_impl< Stream, small_vector< T, std::integral_constant< std::size_t, Size > >, msgpack_pack_vector_enabler< Stream, small_vector< T, std::integral_constant< std::size_t, Size > > > > Struct Template Reference

Specialisation of piranha::msgpack_pack() for piranha::small_vector. More...

#include <piranha/small_vector.hpp>

Public Member Functions

void operator() (msgpack::packer< Stream > &packer, const small_vector< T, std::integral_constant< std::size_t, Size >> &v, msgpack_format f) const
 Call operator. More...
 

Detailed Description

template<typename Stream, typename T, std::size_t Size>
struct piranha::msgpack_pack_impl< Stream, small_vector< T, std::integral_constant< std::size_t, Size > >, msgpack_pack_vector_enabler< Stream, small_vector< T, std::integral_constant< std::size_t, Size > > > >

Specialisation of piranha::msgpack_pack() for piranha::small_vector.

Note
This specialisation is enabled only if:

Definition at line 1153 of file small_vector.hpp.

Member Function Documentation

◆ operator()()

template<typename Stream , typename T , std::size_t Size>
void piranha::msgpack_pack_impl< Stream, small_vector< T, std::integral_constant< std::size_t, Size > >, msgpack_pack_vector_enabler< Stream, small_vector< T, std::integral_constant< std::size_t, Size > > > >::operator() ( msgpack::packer< Stream > &  packer,
const small_vector< T, std::integral_constant< std::size_t, Size >> &  v,
msgpack_format  f 
) const
inline

Call operator.

This method will serialize into packer the input vector v using the format f.

Parameters
packerthe target msgpack::packer.
vthe vector to be serialized.
fthe desired piranha::msgpack_format.
Exceptions
unspecifiedany exception thrown by:

Definition at line 1169 of file small_vector.hpp.


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