1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#ifndef GENERS_UNORDERED_SETIO_HH_
#define GENERS_UNORDERED_SETIO_HH_
#include "Alignment/Geners/interface/CPP11_config.hh"
#ifdef CPP11_STD_AVAILABLE
#include <unordered_set>
#include "Alignment/Geners/interface/GenericIO.hh"
#include "Alignment/Geners/interface/specialize_hash_io.hh"
namespace gs {
template <class T, class Hash, class Pred, class Alloc>
struct InsertContainerItem<std::unordered_set<T,Hash,Pred,Alloc> >
{
typedef std::unordered_set<T,Hash,Pred,Alloc> A;
static inline void insert(A& obj, const typename A::value_type& item,
const std::size_t /* itemNumber */)
{obj.insert(item);}
};
template <class T, class Hash, class Pred, class Alloc>
struct InsertContainerItem<volatile std::unordered_set<T,Hash,Pred,Alloc> >
{
typedef std::unordered_set<T,Hash,Pred,Alloc> A;
static inline void insert(A& obj, const typename A::value_type& item,
const std::size_t /* itemNumber */)
{obj.insert(item);}
};
template <class T, class Hash, class Pred, class Alloc>
struct InsertContainerItem<std::unordered_multiset<T,Hash,Pred,Alloc> >
{
typedef std::unordered_multiset<T,Hash,Pred,Alloc> A;
static inline void insert(A& obj, const typename A::value_type& item,
const std::size_t /* itemNumber */)
{obj.insert(item);}
};
template <class T, class Hash, class Pred, class Alloc>
struct InsertContainerItem<volatile std::unordered_multiset<T,Hash,Pred,Alloc> >
{
typedef std::unordered_multiset<T,Hash,Pred,Alloc> A;
static inline void insert(A& obj, const typename A::value_type& item,
const std::size_t /* itemNumber */)
{obj.insert(item);}
};
}
gs_specialize_template_id_TTTT(std::unordered_set, 0, 2)
gs_specialize_template_id_TTTT(std::unordered_multiset, 0, 2)
#endif // CPP11_STD_AVAILABLE
#endif // GENERS_UNORDERED_SETIO_HH_
|