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

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

#include <piranha/hash_set.hpp>

Inheritance diagram for piranha::boost_load_impl< Archive, hash_set< T, Hash, Pred >, hash_set_boost_load_enabler< Archive, T, Hash, Pred > >:
Inheritance graph
[legend]
Collaboration diagram for piranha::boost_load_impl< Archive, hash_set< T, Hash, Pred >, hash_set_boost_load_enabler< Archive, T, Hash, Pred > >:
Collaboration graph
[legend]

Public Member Functions

void operator() (Archive &ar, hash_set< T, Hash, Pred > &x) const
 Call operator. More...
 

Detailed Description

template<typename Archive, typename T, typename Hash, typename Pred>
struct piranha::boost_load_impl< Archive, hash_set< T, Hash, Pred >, hash_set_boost_load_enabler< Archive, T, Hash, Pred > >

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

Note
This specialisation is enabled only if T and the size type of piranha::hash_set satisfy piranha::has_boost_load.

In case duplicate elements are encountered during deserialization, an exception will be raised. Before performing the deserialization, the output piranha::hash_set is reset with a default-constructed instance of piranha::hash_set. The hashing functor and the equality predicate are not deserialized. The basic exception safety guarantee is provided.

Exceptions
std::invalid_argumentif a duplicate element is encountered during deserialization.
unspecifiedany exception thrown by:

Definition at line 1506 of file hash_set.hpp.

Member Function Documentation

◆ operator()()

void piranha::boost_load_via_boost_api< Archive, hash_set< T, Hash, Pred > >::operator() ( Archive &  ar,
hash_set< T, Hash, Pred > &  x 
) const
inlineinherited

Call operator.

The body of this operator is equivalent to:

ar >> x;

That is, the content of ar will loaded into x using the stream extraction operator. In order for this method to be callable, the type T must provide valid overloads of the methods/functions needed by the Boost serialization API.

Parameters
arthe source archive.
xthe object into which the content of ar will be deserialized.
Exceptions
unspecifiedany exception thrown by the extraction of ar into x.

Definition at line 379 of file s11n.hpp.


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