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

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

#include <piranha/hash_set.hpp>

Public Member Functions

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

Detailed Description

template<typename T, typename Hash, typename Pred>
struct piranha::msgpack_convert_impl< hash_set< T, Hash, Pred >, hash_set_msgpack_convert_enabler< T > >

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

Note
This specialisation is enabled only if T satisfies piranha::has_msgpack_convert.

Definition at line 1563 of file hash_set.hpp.

Member Function Documentation

◆ operator()()

template<typename T , typename Hash , typename Pred >
void piranha::msgpack_convert_impl< hash_set< T, Hash, Pred >, hash_set_msgpack_convert_enabler< T > >::operator() ( hash_set< T, Hash, Pred > &  h,
const msgpack::object &  o,
msgpack_format  f 
) const
inline

Call operator.

This method will convert the input object o into h using the format f. In case duplicate elements are encountered during deserialization, an exception will be raised. Before performing the deserialization, h is reset with a default-constructed instance of piranha::hash_set. The hashing functor and the equality predicate are not deserialized. This method provides the basic exception safety guarantee.

Parameters
hthe target piranha::hash_set.
othe source msgpack::object.
fthe desired piranha::msgpack_format.
Exceptions
std::invalid_argumentif a duplicate element is encountered during deserialization.
unspecifiedany exception thrown by:

Definition at line 1581 of file hash_set.hpp.


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