piranha  0.10
Public Member Functions | List of all members
piranha::msgpack_pack_impl< Stream, std::string, msgpack_string_enabler< Stream > > Struct Template Reference

Specialisation of piranha::msgpack_pack() for std::string. More...

#include <piranha/s11n.hpp>

Public Member Functions

void operator() (msgpack::packer< Stream > &packer, const std::string &s, msgpack_format) const
 Call operator. More...
 

Detailed Description

template<typename Stream>
struct piranha::msgpack_pack_impl< Stream, std::string, msgpack_string_enabler< Stream > >

Specialisation of piranha::msgpack_pack() for std::string.

Note
This specialisation is enabled if Stream satisfies piranha::is_msgpack_stream.

The call operator will use directly the pack() method of the input msgpack packer.

Definition at line 809 of file s11n.hpp.

Member Function Documentation

◆ operator()()

template<typename Stream >
void piranha::msgpack_pack_impl< Stream, std::string, msgpack_string_enabler< Stream > >::operator() ( msgpack::packer< Stream > &  packer,
const std::string &  s,
msgpack_format   
) const
inline

Call operator.

Parameters
packerthe target packer.
sthe string to be packed.
Exceptions
unspecifiedany exception thrown by msgpack::packer::pack().

Definition at line 817 of file s11n.hpp.


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