piranha  0.10
Public Member Functions | List of all members
piranha::msgpack_pack_impl< Stream, hash_set< T, Hash, Pred >, hash_set_msgpack_pack_enabler< Stream, T, Hash, Pred > > Struct Template Reference

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

#include <piranha/hash_set.hpp>

Public Member Functions

void operator() (msgpack::packer< Stream > &p, const hash_set< T, Hash, Pred > &h, msgpack_format f) const
 Call operator. More...
 

Detailed Description

template<typename Stream, typename T, typename Hash, typename Pred>
struct piranha::msgpack_pack_impl< Stream, hash_set< T, Hash, Pred >, hash_set_msgpack_pack_enabler< Stream, T, Hash, Pred > >

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

Note
This specialisation is enabled only if

Definition at line 1535 of file hash_set.hpp.

Member Function Documentation

◆ operator()()

template<typename Stream , typename T , typename Hash , typename Pred >
void piranha::msgpack_pack_impl< Stream, hash_set< T, Hash, Pred >, hash_set_msgpack_pack_enabler< Stream, T, Hash, Pred > >::operator() ( msgpack::packer< Stream > &  p,
const hash_set< T, Hash, Pred > &  h,
msgpack_format  f 
) const
inline

Call operator.

This method will serialize h into p using the format f. The hashing functor and the equality predicate are not serialized. The msgpack representation of a piranha::hash_set consists of an array containing the items in the set.

Parameters
pthe target packer.
hthe piranha::hash_set that will be serialized.
fthe desired piranha::msgpack_format.
Exceptions
unspecifiedany exception thrown by:

Definition at line 1551 of file hash_set.hpp.


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