5 #ifndef ODB_STD_UNORDERED_MAP_TRAITS_HXX
6 #define ODB_STD_UNORDERED_MAP_TRAITS_HXX
11 #include <unordered_map>
17 template <
typename K,
typename V,
typename H,
typename P,
typename A>
22 static const bool smart =
false;
28 typedef typename container_type::value_type
pair_type;
36 for (
typename container_type::const_iterator i (c.begin ()),
37 e (c.end ()); i != e; ++i)
38 f.
insert (i->first, i->second);
51 c.insert (
pair_type (std::move (k), std::move (v)));
60 for (
typename container_type::const_iterator i (c.begin ()),
61 e (c.end ()); i != e; ++i)
62 f.
insert (i->first, i->second);
76 template <
typename K,
typename V,
typename H,
typename P,
typename A>
81 static const bool smart =
false;
87 typedef typename container_type::value_type
pair_type;
95 for (
typename container_type::const_iterator i (c.begin ()),
96 e (c.end ()); i != e; ++i)
97 f.
insert (i->first, i->second);
110 c.insert (
pair_type (std::move (k), std::move (v)));
119 for (
typename container_type::const_iterator i (c.begin ()),
120 e (c.end ()); i != e; ++i)
121 f.
insert (i->first, i->second);
134 #endif // ODB_STD_UNORDERED_MAP_TRAITS_HXX
static void persist(const container_type &c, const functions &f)
Definition: std-unordered-map-traits.hxx:34
map_functions< key_type, value_type > functions
Definition: std-unordered-map-traits.hxx:30
void insert(const K &key, const V &value) const
Definition: container-traits.hxx:174
static void persist(const container_type &c, const functions &f)
Definition: std-unordered-map-traits.hxx:93
Definition: container-traits.hxx:168
static void update(const container_type &c, const functions &f)
Definition: std-unordered-map-traits.hxx:115
static void load(container_type &c, bool more, const functions &f)
Definition: std-unordered-map-traits.hxx:101
Definition: forward.hxx:119
static void update(const container_type &c, const functions &f)
Definition: std-unordered-map-traits.hxx:56
container_kind
Definition: container-traits.hxx:17
container_type::value_type pair_type
Definition: std-unordered-map-traits.hxx:28
K key_type
Definition: std-unordered-map-traits.hxx:85
V value_type
Definition: std-unordered-map-traits.hxx:86
static void erase(const functions &f)
Definition: std-unordered-map-traits.hxx:125
void delete_() const
Definition: container-traits.hxx:186
K key_type
Definition: std-unordered-map-traits.hxx:26
Definition: container-traits.hxx:23
static void load(container_type &c, bool more, const functions &f)
Definition: std-unordered-map-traits.hxx:42
map_functions< key_type, value_type > functions
Definition: std-unordered-map-traits.hxx:89
container_type::value_type pair_type
Definition: std-unordered-map-traits.hxx:87
std::unordered_map< K, V, H, P, A > container_type
Definition: std-unordered-map-traits.hxx:24
std::unordered_multimap< K, V, H, P, A > container_type
Definition: std-unordered-map-traits.hxx:83
static void erase(const functions &f)
Definition: std-unordered-map-traits.hxx:66
V value_type
Definition: std-unordered-map-traits.hxx:27
Definition: container-traits.hxx:22
bool select(K &next_key, V &next_value) const
Definition: container-traits.hxx:180