2012-07-27 21:37:47 +02:00
|
|
|
/* wrapper for std::map */
|
2011-12-09 21:50:25 +01:00
|
|
|
|
|
|
|
template<class K, class V>
|
|
|
|
class map : public map_wrapper<std::map<K, V>, K, V>
|
|
|
|
{
|
|
|
|
typedef map_wrapper<std::map<K, V>, K, V> base;
|
|
|
|
|
|
|
|
public:
|
|
|
|
map () { }
|
|
|
|
map (unsigned dummy_size) : base(dummy_size) { }
|
|
|
|
map (const map &m) : base(m) { }
|
|
|
|
map (copy, const map &m) : base(COPY, m) { }
|
2012-07-28 14:14:11 +02:00
|
|
|
map (initializer_list<std::pair<const K, V> > il) : base(il) { }
|
2011-12-09 21:50:25 +01:00
|
|
|
map (reader &r) : base(r) { }
|
|
|
|
~map () { }
|
|
|
|
|
|
|
|
map &operator = (const map &m) { base::operator = (m); return *this; }
|
2012-07-28 14:14:11 +02:00
|
|
|
map &operator = (initializer_list<std::pair<const K, V> > il)
|
|
|
|
{
|
|
|
|
base::operator = (il);
|
|
|
|
return *this;
|
|
|
|
}
|
2011-12-09 21:50:25 +01:00
|
|
|
};
|
2012-07-27 21:37:47 +02:00
|
|
|
|
|
|
|
template<class K, class V>
|
|
|
|
using map_iter = map_wrapper_iter<std::map<K, V>, K, V>;
|
|
|
|
|
|
|
|
template<class K, class V>
|
|
|
|
using map_const_iter = map_wrapper_const_iter<std::map<K, V>, K, V>;
|