5 #ifndef ODB_STD_MAP_TRAITS_HXX
6 #define ODB_STD_MAP_TRAITS_HXX
14 #include <odb/details/config.hxx>
18 template <
typename K,
typename V,
typename C,
typename A>
23 static const bool smart =
false;
29 typedef typename container_type::value_type
pair_type;
37 for (
typename container_type::const_iterator i (c.begin ()),
38 e (c.end ()); i != e; ++i)
39 f.
insert (i->first, i->second);
53 c.insert (
pair_type (std::move (k), std::move (v)));
65 for (
typename container_type::const_iterator i (c.begin ()),
66 e (c.end ()); i != e; ++i)
67 f.
insert (i->first, i->second);
81 template <
typename K,
typename V,
typename C,
typename A>
86 static const bool smart =
false;
92 typedef typename container_type::value_type
pair_type;
100 for (
typename container_type::const_iterator i (c.begin ()),
101 e (c.end ()); i != e; ++i)
102 f.
insert (i->first, i->second);
116 c.insert (
pair_type (std::move (k), std::move (v)));
128 for (
typename container_type::const_iterator i (c.begin ()),
129 e (c.end ()); i != e; ++i)
130 f.
insert (i->first, i->second);
143 #endif // ODB_STD_MAP_TRAITS_HXX
map_functions< key_type, value_type > functions
Definition: std-map-traits.hxx:31
static void erase(const functions &f)
Definition: std-map-traits.hxx:134
static void load(container_type &c, bool more, const functions &f)
Definition: std-map-traits.hxx:106
static void load(container_type &c, bool more, const functions &f)
Definition: std-map-traits.hxx:43
static void persist(const container_type &c, const functions &f)
Definition: std-map-traits.hxx:35
void insert(const K &key, const V &value) const
Definition: container-traits.hxx:174
V value_type
Definition: std-map-traits.hxx:91
Definition: container-traits.hxx:168
K key_type
Definition: std-map-traits.hxx:90
Definition: forward.hxx:119
container_kind
Definition: container-traits.hxx:17
std::multimap< K, V, C, A > container_type
Definition: std-map-traits.hxx:88
container_type::value_type pair_type
Definition: std-map-traits.hxx:92
void delete_() const
Definition: container-traits.hxx:186
static void update(const container_type &c, const functions &f)
Definition: std-map-traits.hxx:124
Definition: container-traits.hxx:23
K key_type
Definition: std-map-traits.hxx:27
static void persist(const container_type &c, const functions &f)
Definition: std-map-traits.hxx:98
V value_type
Definition: std-map-traits.hxx:28
static void update(const container_type &c, const functions &f)
Definition: std-map-traits.hxx:61
container_type::value_type pair_type
Definition: std-map-traits.hxx:29
map_functions< key_type, value_type > functions
Definition: std-map-traits.hxx:94
std::map< K, V, C, A > container_type
Definition: std-map-traits.hxx:25
static void erase(const functions &f)
Definition: std-map-traits.hxx:71
Definition: container-traits.hxx:22
bool select(K &next_key, V &next_value) const
Definition: container-traits.hxx:180